x = [ 1, 2, 3, 4, 5, 6 ];<br />
y1 = [ 1.4, 3, 5, 4, 1, 6 ];<br />
y2 = [ -2.4, 2.3, 0.45, 3.2, 1.1, 5.2 ];<br />
<br />
plot(x,y1, {'yap'='left'});<br />
plot(x,y2, {'yap'='right', 'color'='green'});<br />
<br />
plotopt( { 'title'='Graph with Two Y Axes', 'legend'=false } );<br />
axis( 'y1', { 'label'='Left Y Axis' } );<br />
axis( 'y2', { 'label'='Right Y Axis' } );<br />
axis( 'x1', {'label'='X Axis'} );<br />
<br />
plotout( 'c:/users/paul/desktop/plot.png' );