hey there, I encounter this problem, that I wana have part 1 to be plotted on
the left y-axes, and part 2 on the right y-axes, both with the same x-axes,

part 1

for j = 1:size(data1,2)
    pp=spline(x0,data1(:,j));
    plotyy(x,ppval(pp,x),[marker(j) color(j) '-'],'plot');
    hold on
end
    
for j2 = 1:size(data8,2)
    pp1=spline(x0,data8(:,j2));
    plotyy(x,ppval(pp1,x),[marker1(j2) color1(j2) '-'],'plot');
    hold on
end

for j3 = 1:size(data9,2)
    pp2=spline(x0,data9(:,j3));
    plotyy(x,ppval(pp2,x),[marker2(j3) color2(j3) '-'],'plot');
    hold on
end

for j4 = 1:size(data10,2)
    pp3=spline(x0,data10(:,j4));
    plotyy(x,ppval(pp3,x),[marker3(j4) color3(j4) '-'],'plot');
    hold on
end

for j5 = 1:size(data11,2)
    pp4=spline(x0,data11(:,j5));
    plotyy(x,ppval(pp4,x),[marker4(j5) color4(j5) '-'],'plot');
    hold on
end

for j6 = 1:size(data12,2)
    pp5=spline(x0,data12(:,j6));
    plotyy(x,ppval(pp5,x),[marker5(j6) color5(j6) '-'],'plot');
    hold on
end


.....

part 2

for j7 = 1:size(kratio7,2)
    pp6=spline(x0,kratio7(:,j7));
    %h1 = line(x,ppval(pp6,x),[marker(j7) color(j7) ':'],'Parent',ax2);
    plot(x,ppval(pp6,x),[marker(j7) color(j7) ':']);
    %plotyy ('plot')
    hold on
end

for j8 = 1:size(kratio8,2)
    pp7=spline(x0,kratio8(:,j8));
    plot(x,ppval(pp7,x),[marker1(j8) color1(j8) ':']);
    %plotyy ('plot')
    hold on
end
   
for j9 = 1:size(kratio9,2)
    pp8=spline(x0,kratio9(:,j9));
    plot(x,ppval(pp8,x),[marker2(j9) color2(j9) ':']);
    %plotyy ('plot')
    hold on
end

for j10 = 1:size(kratio10,2)
    pp9=spline(x0,kratio10(:,j10));
    plot(x,ppval(pp9,x),[marker3(j10) color3(j10) ':']);
    %plotyy ('plot')
    hold on
end

for j11 = 1:size(kratio11,2)
    pp10=spline(x0,kratio11(:,j11));
    plot(x,ppval(pp10,x),[marker4(j11) color4(j11) ':']);
    %plotyy ('plot')
    hold on
end

for j12 = 1:size(kratio12,2)
    pp11=spline(x0,kratio12(:,j12));
    plot(x,ppval(pp11,x),[marker5(j12) color5(j12) ':']);
    %plotyy ('plot')
    hold on
end

....

I tried plotyy but it seems not to be working fine, kindly help. Many thanks in
regards.

regards
V, Germany

-- 
<http://forum.pspad.com/read.php?2,54378,54378>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem