bugGNU Octave - Bugs: bug #32374, legend disappears with its...

 
 

bug #32374: legend disappears with its location is modified

Submitter:  Ben Abbott <bpabbott>
Submitted:  Sun 06 Feb 2011 08:58:24 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  dbateman
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
   

Sun 06 Feb 2011 10:59:38 PM UTC, comment #3: 

Its relatively easy to get this behavior and as matlab now seems to do this we should probably do it too. See the changeset

http://hg.savannah.gnu.org/hgweb/octave/rev/735e43b75e45

D.

David Bateman <dbateman>
Group Member
Sun 06 Feb 2011 10:02:16 PM UTC, comment #2: 

David, you are correct. The documentation does not clearly indicate this will work. Although, Matlab 2010b does support this behavior.

The on line documentation indicates ...

LEGEND(...,'Location',LOC)

It is possible that Mathwork's intends that to mean ...

LEGEND('Location',LOC)
 
... should work?

Ben Abbott <bpabbott>
Group Member
Sun 06 Feb 2011 09:24:14 PM UTC, comment #1: 

I'm not sure this is a bug, as reading

http://www.mathworks.com/help/techdoc/ref/legend.html

the location and the orientation can only be set in the legend function a call that sets the text of the keys. You can however do

plot(1:10)
h = legend ("hello world)
set (h, "location", "east")

Could you check the behavior of matlab for this?

D.

David Bateman <dbateman>
Group Member
Sun 06 Feb 2011 08:58:24 PM UTC, original submission:  

After the location is change the legend is gone.


plot (1:10, ";hello world;")
legend location east
-verbatiim-

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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-02-06 dbateman Item GroupIncorrect Result Feature Request
        StatusNone Fixed
        Assigned toNone dbateman
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code