bugGNU Octave - Bugs: bug #33463, legend broken for scatter plots

 
 

bug #33463: legend broken for scatter plots

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Thu 02 Jun 2011 12:17:21 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Ben AbbottOpen/Closed: Closed
Release: 3.4.0Operating System: Mac OS

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Sun 16 Mar 2014 06:46:44 PM UTC, comment #8:

Only 3 years after the initial report, I've pushed a patch for legend and scatter objects (http://hg.savannah.gnu.org/hgweb/octave/rev/3a1a4d587c4e).

Rik <rik5>
Project Administrator
Wed 12 Sep 2012 05:26:38 PM UTC, comment #7:

Still present in the development code. Re-titling this report to reflect the remaining open issue. See comment #1 for example code to reproduce the problem.

Rik <rik5>
Project Administrator
Mon 13 Aug 2012 02:50:26 PM UTC, comment #6:

David, See comment #3. This issue has been fixed on the development branch. Unless you build from sources, it won't show up until the 3.8.0 release.

Rik <rik5>
Project Administrator
Mon 13 Aug 2012 11:47:02 AM UTC, comment #5:

David,

This list is intended for fixing bugs. For help with Octave please use the mail-list, help@octave.org.

Ben Abbott <bpabbott>
Project Member
Mon 13 Aug 2012 10:48:51 AM UTC, comment #4:

I plotted a figure with area. However no legend is rendered, no colour is indicated. Does anyone have any ideas?

Thank you.

t= linspace(0,10,100);
y1=0.5+abs(sin(t));
y2=1.0+abs(sin(t));

figure(1);area(t,y2,'FaceColor','b')
hold on
area(t,y1,'FaceColor','c')
hold off;
ylabel('sin(t)'); xlabel('t');
legend("lower", "upper");
grid on;set(gca,'Layer','top');
title('Rectified Sine Wave');

David Lai <davidlai>
Sat 09 Jun 2012 12:23:30 AM UTC, comment #3:

This issue has been partially fixed by Kostas' changeset here (http://hg.savannah.gnu.org/hgweb/octave/rev/daad312c8af0). A single patch object now correctly displays a legend. However, the first example in this bug report, scatter (), still fails. The issue is probably connected with hggroups. Interestingly, both bar graphs and pie charts, which also use hggroups, do work.

Rik <rik5>
Project Administrator
Sat 01 Oct 2011 03:40:53 PM UTC, comment #2:

I"ve been meaning to look at this, but haven't found the time.

Is someone is inclined, I'd start by looking at what is done for 14th demo for legend(). In this instance gnuplot does provide the proper result for patches (which are actually children of hggroups).

Which produces,

However, the fltk backend does not.

Ben Abbott <bpabbott>
Project Member
Sat 01 Oct 2011 03:02:49 PM UTC, comment #1:

Simpler example code directly using patch which shows that legend is not picking up any data from the patch object.

The text "patch1" is displayed in the legend but no color information.

Rik <rik5>
Project Administrator
Thu 02 Jun 2011 12:17:21 PM UTC, original submission:

The legend does not render correctly for patches. For the example below ...

For gnuplot, no legend is rendered, and for FLTK there is no symbol/line/color indicated.

I've attached a pdf illustrating the result from Matlab.

Ben Abbott <bpabbott>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #23494:  matlab.pdf added by bpabbott (86kB - application/pdf)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by davidlai (Posted a comment)
  • -unavailable- added by rik5
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by bpabbott (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 16 Mar 2014 06:46:44 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Wed 12 Sep 2012 05:26:38 PM UTCrik5Summarylegend broken for patches=>legend broken for scatter plots
    Sat 09 Jun 2012 12:23:30 AM UTCrik5Carbon-Copy-=>Added konstantinos poulios
    Sun 08 Jan 2012 03:09:16 PM UTCrik5Dependencies-=>bugs #35260 is dependent
    Wed 30 Nov 2011 05:33:25 PM UTCrik5Dependencies-=>bugs #34881 is dependent
    Sat 01 Oct 2011 03:02:49 PM UTCrik5StatusNone=>Confirmed
      Summarybroken legend for patches=>legend broken for patches
    Thu 02 Jun 2011 12:18:03 PM UTCbpabbottAttached File-=>Added matlab.pdf, #23494

    Back to the top


    Powered by Savane 3.1-cleanup