matlab - Reversing one y-axis of a plotyy -


my code:

figure [ax, h1, h2] = plotyy(x1,y1,x2,y2,'semilogy','semilogy'); 

now want reverse direction of second y-axis. tried adding:

set(h2,'ydir','reverse'); 

but results in following error:

the name 'ydir' not accessible property instance of class 'lineseries'. 

ydir writeable property of axis, not of graphics object:

set(ax(2),'ydir','reverse') 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -