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

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

[Octave-bug-tracker] [bug #36480] No markers in Legends with errorbar-pl


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #36480] No markers in Legends with errorbar-plot
Date: Wed, 06 Nov 2013 18:13:31 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131030 Firefox/17.0 Iceweasel/17.0.10

Follow-up Comment #2, bug #36480 (project octave):

I can confirm this bug is still present (also seems a regression from  bug
#29057). This can be seen easily by comparing the following:


figure ();
x = -10:0.5:10; plot (x, sin (x), "-ob", x, cos (x), "-xb"); legend ("sin
(x)", "cos (x)");
figure ();
x = -10:0.5:10; errorbar (x, sin (x), 0.5, "-ob", x, cos (x), 0.5, "-xb");
legend ("sin (x)", "cos (x)");


On the first figure (where plot() was used), the legend shows the marker,
while on the second (done with errorbar()), ther is only the text.

I'm not super familiar with the code for graphics but I tracked it down to
somewhere before line 840 of legend.m


              marker = get (hplots(k), "marker");


where this returns "none" for an errorbar plot. This however is not true as
can be seen from:


x = -10:0.5:10; h = plot (x, sin (x), "-ob", x, cos (x), "-xb");
get (h, "marker")
x = -10:0.5:10; h = errorbar (x, sin (x), 0.5, "-ob", x, cos (x), 0.5,
"-xb");
get (h, "marker")


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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