|
From: | Dan Sebald |
Subject: | [Octave-bug-tracker] [bug #51759] demo ("axis", 3) fails with gnuplot |
Date: | Wed, 23 Aug 2017 01:39:06 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #9, bug #51759 (project octave): The construct I wrote is intended. That's the "if labels is empty" part. Bit of a trick I suppose since it incorporates the conditional in the syntax. labels(end+1:1) = {""}; is the same as if (isempty(labels)) labels = {""}; or if (length (labels) == 0) labels = {""}; The bug is that labels can't be empty or the loop will fail. The preference for patch 41540 or 41542 is up to you. I know you like to get rid of loops whenever possible, so I thought you might like 41542. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?51759> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |