octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50483] legend hide fails for gnuplot since v4


From: Rik
Subject: [Octave-bug-tracker] [bug #50483] legend hide fails for gnuplot since v4.0.3
Date: Tue, 1 Aug 2017 20:19:39 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #7, bug #50483 (project octave):

@Dan: I believe the reason to check visibility is for cases where an object is
plotted, labeled, but eventually hidden.  This test code shows how it works


graphics_toolkit gnuplot
h1 = plot (1:10);
hold on
h2 = plot (10:-1:1);
legend abc def
## At this point, both lines are visible and labeled
set (h2, 'visible', 'off')
## Now, only one line is visible, and the legend has been properly updated
set (h2, 'visible', 'on')
## Both lines are visible and the legend has both labels


While the code above works perfectly, there is a problem if the number of
objects drops to 0.  At that point the legend still contains an entry which is
a magenta line and the literal text "-".  Try this


graphics_toolkit gnuplot
h = plot (1:10);
legend abc
set (h, 'visible', 'off')


If it were easy to fix it would be nice to do so.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50483>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]