bugGNU Octave - Bugs: bug #32372, "legend off" does not...

 
 

bug #32372: "legend off" does not give proper result

Submitter:  Ben Abbott <bpabbott>
Submitted:  Sun 06 Feb 2011 08:04:49 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 07 Feb 2011 08:06:40 PM UTC, comment #5: 

done!

Ben Abbott <bpabbott>
Group Member
Mon 07 Feb 2011 07:54:49 PM UTC, comment #4: 

Ok so the existing behavior is correct and we should close this bug report

D.


David Bateman <dbateman>
Group Member
Sun 06 Feb 2011 11:37:48 PM UTC, comment #3: 

For your example, the axis position is the same when the legend is hidden or visible.


Ben Abbott <bpabbott>
Group Member
Sun 06 Feb 2011 11:02:37 PM UTC, comment #2: 

However in matlab does


clf
x = 0:10;
plot (x, rand (11));
legend (cellstr (num2str ((1:10)')), 'location', 'northeastoutside')
xlabel ('Indices')
ylabel ('Random Values')
legend hide


cause the position of the axes to be reset when the legend is hidden? If so should be do that as well?

D.

David Bateman <dbateman>
Group Member
Sun 06 Feb 2011 08:54:09 PM UTC, comment #1: 
Ben Abbott <bpabbott>
Group Member
Sun 06 Feb 2011 08:04:49 PM UTC, original submission:  

When the legend is turned off the plot box does not return to it's default position.


clf
x = 0:10;
plot (x, rand (11));
legend (cellstr (num2str ((1:10)')), 'location', 'northeastoutside')
xlabel ('Indices')
ylabel ('Random Values')
legend off


I expect "legend off" is behaving as "legend hide". However, "legend off" should delete the legend object, where "legend hide" only toggles its visibility.

Ben Abbott <bpabbott>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dbateman (Posted a comment)
  • -email is unavailable- added by bpabbott (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-02-07 bpabbott StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2011-02-06 bpabbott StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code