bugGNU Octave - Bugs: bug #38131, implied set() within plot() isn't...

 
 

bug #38131: implied set() within plot() isn't consistent with set()

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Mon 21 Jan 2013 01:05:05 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: Wont FixAssigned to: None
Originator Name: Ben AbbottOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed 23 Jan 2013 06:05:17 AM UTC, comment #3:

Probably right. Too much work for too little gain; especially when there are easy workarounds.

Workarounds:

1) Provide the PROP/VALUE settings as pairs in the call to plot instead of in a cell array.

2) Use the return handle from plot and a separate call to set as in.

Rik <rik5>
Project Administrator
Wed 23 Jan 2013 02:16:42 AM UTC, comment #2:

Matlab complains as well, and it appears to me that Octave is working as intended.

I haven't considered what would be involved to make plot and other functions behave in a manner consistent with set. Maybe the task to more effort that it is worth?

Ben Abbott <bpabbott>
Project Member
Tue 22 Jan 2013 10:01:25 PM UTC, comment #1:

Two thoughts:

1) The documentation for plot doesn't say that you should be allowed to pass cell arrays of properties and values so Octave is consistent with itself and also with the Matlab documentation.

2) What does Matlab do? Did they extend their plot() function to accept cell arrays even of only one parameter?

Rik <rik5>
Project Administrator
Mon 21 Jan 2013 01:05:05 PM UTC, original submission:

Given the syntax below

Should the following work?

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:
   

No files currently attached

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 17 Oct 2013 09:25:12 PM UTCrik5StatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup