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

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

[Octave-bug-tracker] [bug #37337] Legend not working for hggroup objects


From: Rik
Subject: [Octave-bug-tracker] [bug #37337] Legend not working for hggroup objects with linestyles
Date: Wed, 12 Sep 2012 18:11:45 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0

URL:
  <http://savannah.gnu.org/bugs/?37337>

                 Summary: Legend not working for hggroup objects with
linestyles
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 12 Sep 2012 11:11:44 AM PDT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The legend command is not working for certain plots that have hggroup objects.
 Although it is picking up the correct color, it is not picking up the marker
style correctly.

Example code:


x = 1:10;
y1 = 1:10;
y2 = 0.5*y1;
y3 = 2*y1;
errorbar (x,y1,1,"~x", x,y2, 0.5,"~o", x,y3,2,"~d")
legend ({"err1", "err2", "err3"})


The issue is in legend.m when it picks out which objects to annotate.  It is
moving down below the hggroup object into the individual line objects which
make up the errorbars.  These lines don't have a marker property because that
is something only the hggroup has.

I think this may be a general issue.  In example 16 from legend.m there is a
bar chart created which uses hggroups and patch objects underneath those.  If
I change the patch object color directly and update the legend then the color
is changed, despite the fact that the hggroup color remains what it previously
was set to.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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