bugGNU Octave - Bugs: bug #31157, plotyy: handling options the same...

 
 

bug #31157: plotyy: handling options the same way as plot

Submitted by:  Pascal Dupuis <cdemills>
Submitted on:  Tue 28 Sep 2010 09:00:23 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: Need InfoAssigned to: None
Originator Name: Pascal DupuisOpen/Closed: Closed
Release: 3.2.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 03 Nov 2010 02:25:23 AM UTC, comment #1:

How do you forsee people using the additional plot options? The options would be applied to both plots equally which doesn't seem very useful. For example, plotyy (...,"b+") would set both plots to the same color and using the same marker. This makes the two plots hard to distinguish from one another.

Example:

Attached are two sample plots. One was made using the commands above and the second was done with the original code showing the automatic selection of different colors.

If you do need to set common properties it seems like it would be simpler to use the 3 return arguments from plotyy and then the set function. Using your example:

Rik <rik5>
Project Administrator
Tue 28 Sep 2010 09:00:23 PM UTC, original submission:

Enclosed a small modification for plotyy adding the ability to pass options in a way similar to plot:

x = 0:0.1:2*pi;
y1 = sin (x);
y2 = exp (x - 1);
ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy, "linewidth", 2);

Regards

Pascal

Pascal Dupuis <cdemills>
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 #21907:  plotyy_sample.pdf added by rik5 (7KiB - application/pdf)
file #21908:  plotyy_orig.pdf added by rik5 (4KiB - application/pdf)
file #21566:  pat2 added by cdemills (931B - application/octet-stream)

 

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 cdemills (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 02 Dec 2010 07:45:30 PM UTCrik5Open/ClosedOpen=>Closed
    Wed 03 Nov 2010 02:27:32 AM UTCrik5Attached File-=>Added plotyy_sample.pdf, #21907
      Attached File-=>Added plotyy_orig.pdf, #21908
    Wed 03 Nov 2010 02:25:23 AM UTCrik5StatusNone=>Need Info
    Tue 28 Sep 2010 09:00:23 PM UTCcdemillsAttached File-=>Added pat2, #21566

    Back to the top


    Powered by Savane 3.1-cleanup1