Prev: script generation
Next: Special Offer
From: Sofie on 1 Jul 2010 08:44 Hi, My problem is this. I am trying to compare two sets of curves and i have plotted them both using plotyy seperatly, but when i try and plot them is the same figure, using the command hold on, only one of the Y-axis from the first plot is visible. The one that goes missing is the left Y-axis, which should display 3 curves. I have also tried using hold for the different axis, but no results. can anyone figure this out?
From: Sean on 1 Jul 2010 10:51 "Sofie " <jarelius(a)t.kth.se> wrote in message <i0i2ik$2bm$1(a)fred.mathworks.com>... > Hi, > My problem is this. > I am trying to compare two sets of curves and i have plotted them both using plotyy seperatly, but when i try and plot them is the same figure, using the command hold on, only one of the Y-axis from the first plot is visible. The one that goes missing is the left Y-axis, which should display 3 curves. > I have also tried using hold for the different axis, but no results. > > can anyone figure this out? x = 1:10; y1 = [1:10].^2; y2 = exp(y1)/10; y3 = [10:-1:1].^2; y4 = log(10:-1:1); [A] = plotyy(x,y1,x,y2); hold on plotyy(A,x,y3,x,y4)
|
Pages: 1 Prev: script generation Next: Special Offer |