I am trying to make the color of the left Y axis red and the color of the right Y axis blue. I can't figure out the right syntax.
Thanks in advance.
A snip of the code I have is below:
close; % plot F23 vs. D in figure gcf
[AX,H1,H2]=plotyy(Dcurve,F23curve,W,V,'plot'); AX set(gcf,'Position',[500,500,900,500]); title('Click on all the discontinuities and then hit Return key'); set(get(AX(1),'Ylabel'),'String','Force^(2/3) [N^(2/3)]'); % ? % set(get(AX(1),'color'),'red');
set(get(AX(2),'Ylabel'),'String','Force [N]'); % ? % set(get(AX(2),'color'),'blue');
xlabel('Indentation depth [m]'); set(H1,'LineStyle','-'); set(H1,'color','red'); set(H2,'LineStyle','-'); set(H2,'color','blue'); hold on % user double click on all discontinuities and press enter
[xm,ym]=ginput;
Best Answer