or you may prefer to use :
[low,high,ticks] = bestscale(ylim1(1),ylim1(2),ylim2(1),ylim2(2),islog1 | islog2);
if you want to get a better ticks layout
(see open plotyy to copy bestscale sub function)
04 May 2008
very useful thanks
05 Dec 2007
to get the position right
08 Nov 2006
To use with subplot, you need to comment out
set(ax(1),'Position',[0.12 0.12 0.75 0.70])
on line 65.
06 Nov 2006
Is it just me, or does this not work with subplots?
24 Oct 2006
To avoid inconsistent axes ranges, I suggest calling
> axis tight
after plotxx. You might consider adding this to the function as a precausion.
30 Nov 2005
Useful as a corollary to plotyy. Would be useful to have two inversely proportional axes for one plot (e.g., wavelength on bottom and energy on top). Though this isn't too hard to do from plotxx. Thanks!
23 Oct 2005
Thanks, saved me a lot of programming
02 Feb 2005
Well done Dennis by your scripts, I agree with Lina Chang.
21 Apr 2004
18 Jun 2003
Very useful. I often why mathworks didnt have a function similar to plotyy..
I think additional parameters like passing colors,line width can be helpful too..
16 Mar 2003
Very helpful for creating nomographs. Thanks.
02 Nov 2001
Two new input arguments have been added to ease the task of labeling the axes.