Register to reply 
Setting axis limits in MatLab 
Share this thread: 
#1
Nov2912, 04:04 AM

P: 3

Hi,
I am plotting 3 graphs in matlab using plotyy as [ax h1 h2] = plotyy(x1,Ftemp,x2,Fsnow); hold(ax(2), 'on'); h3 = plot(ax(2),x1,Fprec); I am thus adding the third graph to the right hand yaxis. I then set the limits and tickmarks for the right hand y axis as set(ax(2), 'xlim', [1999.5 2010.5]); set(ax(2), 'ylim', [0 50], 'YTick', 0:10:50); This however only sets the yaxis for h2, the graph I originally plotted using plotyy. The added graph h3 has its own tickmarks and limits. Does anyone know how to handle the axis of h3, the added graph? I want the tickmarks of h2 and h3 to sync and be in the same range. Thanks, Tim 


Register to reply 
Related Discussions  
Quick MATLAB help > Setting a termination point on a plot.  Engineering, Comp Sci, & Technology Homework  3  
Setting up Newton Raphson integral with matlab  General Math  2  
Iterated Integrals  setting up limits of integration  Calculus & Beyond Homework  3  
Need help setting up diff equation in matlab  Math & Science Software  1  
Calc. Double Integrals: Setting Limits  Introductory Physics Homework  1 