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

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

[Octave-bug-tracker] [bug #29057] __errplot__.m plots legends without ma


From: anonymous
Subject: [Octave-bug-tracker] [bug #29057] __errplot__.m plots legends without markers
Date: Tue, 27 Apr 2010 01:24:49 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

Follow-up Comment #20, bug #29057 (project octave):

Ben,

Yes, I am using Aquaterm. Is there a way to set the default size differently
in Aquaterm?

What is funny is that when doing 

h = errorbar (x, y1, err, "~", x, y2, err, "~");
legend("sin", "cos", "location", "southwest");

I get (by default) markers that are of the correct size. If I do:

set(h, "marker", "o");

I get big markers suporimposed on top of the old markers, and the markers are
of different style than the "default" ones. (see attachment "markertest.pdf")

It appears to me that the original markers (that were of the correct size)
are NOT in Octave's control, as setting the "marker" or "markersize" has no
effect on them. You might see the same thing, if you set the "markersize"
bigger, so the "new" markers are not drawn directly on top of the "old" ones.

Is it possible that gnuplot is adding some markers by default, underneath
Octave?

Experimenting with this by commenting out the last __line__ call in
__errplot__.m, causing only the errorbars be plotted, and no "visible line", I
see that the errorbars are drawn with some default markers, and that setting
the "marker" or "markersize" have no effect, even though I can verify that the
corresponding children of the hggroup is of type "line" and has "marker" of
"o" (which is not what I see).

Finally, it appears that the order of the children in the hggroup is
significant, when it comes to the legend. Adding this line after the last
__line__ call in __errplot__.m changes this order:

   set(hl, "parent", hg);

Now the 'hl' (the line with the errorbars, not the visible line just added
above) is the 1st children, and when creating the legend, the markers visible
on the errorbars are shown in the legend. (see attachment "markertest2.pdf")

The children order seems to be significant to the update_data () function
further down in the file; there the error data is updated on the 2nd children
only, so if the order of children is changed, you need to swap 1 and 2 in
update_data ().

The downside now it that setting the "marker" property adds another set of
markers, as I described above, but now only to the main figure, not the
legend. (see attachment "markertest3.pdf")

  Jarno


(file #20345, file #20346, file #20347)
    _______________________________________________________

Additional Item Attachment:

File name: markertest.pdf                 Size:6 KB
File name: markertest2.pdf                Size:4 KB
File name: markertest3.pdf                Size:5 KB


    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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