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:
|
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
|