1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<HTML>
<HEAD>
<TITLE>Plot parametric functions</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<p>
Plot <code>y = sin(x)</code> for <code>-10 < x < 10</code> with the axes
reversed, i.e., <code>y</code> as the horizontal axis and <code>x</code> as the
vertical axis.</p>
<P>
<font color="blue"><pre>
generate x -10,,10 100
set xlabel 'sin(x)'
set ylabel 'x'
graph sin(x) x
</pre></font></P>
<P>
<img src="BasicTasksS15I01.gif"></P>
<P>
Plot <code>(x(t),y(t))</code> for <code>0 < t < 20</code>, where
<code>x(t) = exp(-0.1*t)*cos(t)</code> and <code>y(t) = exp(-0.1*t)*sin(t)</code>.</P>
<P>
<font color="blue"><pre>
generate t 0,,20 100
set xlabel 'e<^>-0.1*t<_>cos(t)'
set ylabel 'e<^>-0.1*t<_>sin(t)'
graph exp(-0.1*t)*cos(t) exp(-0.1*t)*sin(t)
</pre></font></P>
<P>
<img src="BasicTasksS15I02.gif"></P>
<P>
<a href="BasicTasksS14.htm"><img src="../shadow_left.gif">
<font size="+1" color="olive">Display array data as contours and density plot</font></a><br />
<a href="BasicTasksS16.htm"><img src="../shadow_right.gif">
<font size="+1" color="olive">Write data to a file</font></a>
</P>
</BODY>
</HTML>
|