01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

90 gnuplot 4.0 36 SET-SHOW<br />

The command unset polar changes the meaning of the plot back to the default rectangular coordinate<br />

system.<br />

The set polar command is not supported for splots. See the set mapping (p. 76) command for<br />

similar functionality for splot (p. 154)s.<br />

While in polar coordinates the meaning of an expression in t is really r = f(t), where t is an angle of<br />

rotation. The trange controls the domain (the angle) of the function, and the x and y ranges control<br />

the range of the graph in the x and y directions. Each of these ranges, as well as the rrange, may be<br />

autoscaled or set explicitly. See set xrange (p. 148) for details of all the ranges (p. 46) commands.<br />

Example:<br />

set polar<br />

plot t*sin(t)<br />

plot [-2*pi:2*pi] [-3:3] [-3:3] t*sin(t)<br />

The first plot uses the default polar angular domain of 0 to 2*pi. The radius and the size of the graph<br />

are scaled automatically. The second plot expands the domain, and restricts the size of the graph to<br />

[-3:3] in both directions.<br />

You may want to set size square to have gnuplot try to make the aspect ratio equal to unity, so that<br />

circles look circular. See also<br />

and<br />

polar demos (polar.dem)<br />

polar data plot (poldat.dem).<br />

36.52 Print<br />

The set print command redirects the output of the print command to a file.<br />

Syntax:<br />

set print<br />

set print "-"<br />

set print ""<br />

set print "" append<br />

set print "|"<br />

Without "", the output file is restored to . The "-" means<br />

. The append flag causes the file to be opened in append mode. A starting<br />

with "|" is opened as a pipe to the on platforms that support piping.<br />

36.53 Rmargin<br />

The command set rmargin sets the size of the right margin. Please see set margin (p. 77) for details.<br />

36.54 Rrange<br />

The set rrange command sets the range of the radial coordinate for a graph in polar mode. Please see<br />

set xrange (p. 148) for details.<br />

36.55 Samples<br />

The sampling rate of functions, or for interpolating data, may be changed by the set samples command.<br />

Syntax:<br />

set samples {,}<br />

show samples

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!