<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2008 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Polar</TITLE> <META NAME="description" CONTENT="Polar"> <META NAME="keywords" CONTENT="gnuplot"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2008"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="gnuplot.css"> <LINK REL="next" HREF="node256.html"> <LINK REL="previous" HREF="node254.html"> <LINK REL="up" HREF="node175.html"> <LINK REL="next" HREF="node256.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html4872" HREF="node256.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html4866" HREF="node175.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html4860" HREF="node254.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html4868" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html4870" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html4873" HREF="node256.html">Print</A> <B> Up:</B> <A NAME="tex2html4867" HREF="node175.html">Set-show</A> <B> Previous:</B> <A NAME="tex2html4861" HREF="node254.html">Pointsize</A> <B> <A NAME="tex2html4869" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html4871" HREF="node467.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION0402455000000000000000"></A> <A NAME="commands_set_polar"></A><A NAME="commands_unset_polar"></A><A NAME="commands_show_polar"></A><A NAME="set_polar"></A><A NAME="unset_polar"></A><A NAME="show_polar"></A><A NAME="polar"></A><A NAME="6083"></A> <A NAME="nopolar"></A><A NAME="6085"></A> <BR> Polar </H2> The <B>set polar</B> command changes the meaning of the plot from rectangular coordinates to polar coordinates. <P> Syntax: <BR> <PRE> set polar unset polar show polar </PRE> <BR> <P> In polar coordinates, the dummy variable (t) is an angle. The default range of t is [0:2*pi], or, if degree units have been selected, to [0:360] (see <B>set angles (p. <A HREF="node176.html#set_angles"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="6090"></A></B>). <P> The command <B>unset polar</B> changes the meaning of the plot back to the default rectangular coordinate system. <P> The <B>set polar</B> command is not supported for <B>splot</B>s. See the <B>set mapping (p. <A HREF="node225.html#set_mapping"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="6095"></A></B> command for similar functionality for <B>splot (p. <A HREF="node335.html#splot"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="6097"></A></B>s. <P> While in polar coordinates the meaning of an expression in t is really r = f(t), where t is an angle of rotation. The trange controls the domain (the angle) of the function, and the x and y ranges control the range of the graph in the x and y directions. Each of these ranges, as well as the rrange, may be autoscaled or set explicitly. Ffor details of all the <B>ranges</B> commands, see <B>set xrange (p. <A HREF="node299.html#set_xrange"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="6100"></A></B>. <P> Example: <BR> <PRE> set polar plot t*sin(t) plot [-2*pi:2*pi] [-3:3] [-3:3] t*sin(t) </PRE> <BR> <P> The first <B>plot</B> uses the default polar angular domain of 0 to 2*pi. The radius and the size of the graph are scaled automatically. The second <B>plot</B> expands the domain, and restricts the size of the graph to [-3:3] in both directions. <P> You may want to <B>set size square</B> to have <B>gnuplot</B> try to make the aspect ratio equal to unity, so that circles look circular. See also <P> http://www.gnuplot.info/demo/polar.html<TT>polar demos (polar.dem) </TT> <P> and <P> http://www.gnuplot.info/demo/poldat.html<TT>polar data plot (poldat.dem). </TT> <P> <HR> <!--Navigation Panel--> <A NAME="tex2html4872" HREF="node256.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html4866" HREF="node175.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html4860" HREF="node254.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html4868" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html4870" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html4873" HREF="node256.html">Print</A> <B> Up:</B> <A NAME="tex2html4867" HREF="node175.html">Set-show</A> <B> Previous:</B> <A NAME="tex2html4861" HREF="node254.html">Pointsize</A> <B> <A NAME="tex2html4869" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html4871" HREF="node467.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> 2010-08-17 </ADDRESS> </BODY> </HTML>