bugGNU Octave - Bugs: bug #29948, legend() doesn't accept handles of...

 
 

bug #29948: legend() doesn't accept handles of plot objects

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Sun 23 May 2010 03:58:40 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Ben AbbottOpen/Closed: Closed
Release: devOperating System: Mac OS

Add a New Comment(Rich 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)

Wed 26 May 2010 11:54:50 PM UTC, comment #6:

I've pushed the changeset.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Wed 26 May 2010 05:39:40 PM UTC, comment #5:

Go ahead and commit this. I want to clean up the docstring entry to reflect the additional calling form with just strings, not char matrices, but I will do that after your checkin.

Rik <rik5>
Project Administrator
Tue 25 May 2010 02:26:22 PM UTC, comment #4:

I've modified the docstring and uploaded the corrected version to the tracker.

(file #20617)

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Tue 25 May 2010 01:33:39 PM UTC, comment #3:

Should the docstring be modified to show that legend accepts a vector of graphics handles as the first argument?

Otherwise it looks OK to me.

John W. Eaton <jwe>
Project Administrator
Mon 24 May 2010 01:22:34 PM UTC, comment #2:

I noticed that Savannah includes a list of patch submissions. I had misunderstood what "Patch Submitted" meant so I'm changing the status.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Sun 23 May 2010 11:51:22 PM UTC, comment #1:

I've proposed a trivial change to legend.m to support the missing functionality.

(file #20604)

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Sun 23 May 2010 03:58:40 PM UTC, original submission:

Matlab's implementation supports the following.

x = 0:0.01:10;
clf
h = plot (x, sin(x), x, cos(x));
legend (h(2), "cos(x)")

Octave responds with ...

error: legend: expecting first argument to be axes handle

Ben Abbott <bpabbott>
Project MemberIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #20617:  changeset.patch added by bpabbott (3KiB - application/octet-stream - version 2)
file #20604:  changeset.patch added by bpabbott (2KiB - application/octet-stream - changeset)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jwe (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 28 May 2010 12:12:28 AM UTCrik5Open/ClosedOpen=>Closed
    Wed 26 May 2010 11:54:50 PM UTCbpabbottStatusReady For Test=>Fixed
    Tue 25 May 2010 02:26:22 PM UTCbpabbottAttached File-=>Added changeset.patch, #20617
    Mon 24 May 2010 01:22:34 PM UTCbpabbottStatusPatch Submitted=>Ready For Test
    Sun 23 May 2010 11:51:22 PM UTCbpabbottAttached File-=>Added changeset.patch, #20604
      StatusNone=>Patch Submitted
      Assigned toNone=>bpabbott

    Back to the top


    Powered by Savane 3.1-cleanup1