01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

52 gnuplot 4.0 36 SET-SHOW<br />

36 Set-show<br />

The set command can be used to set lots of options. No screen is drawn, however, until a plot, splot,<br />

or replot command is given.<br />

The show command shows their settings; show all shows all the settings.<br />

Options changed using set can be returned to the default state by giving the corresponding unset<br />

command. See also the reset (p. 51) command, which returns all settable parameters to default values.<br />

If a variable contains time/date data, show will display it according to the format currently defined by<br />

set timefmt, even if that was not in effect when the variable was initially defined.<br />

36.1 Angles<br />

By default, gnuplot assumes the independent variable in polar graphs is in units of radians. If set<br />

angles degrees is specified before set polar, then the default range is [0:360] and the independent<br />

variable has units of degrees. This is particularly useful for plots of data files. The angle setting also<br />

applies to 3-d mapping as set via the set mapping command.<br />

Syntax:<br />

set angles {degrees | radians}<br />

show angles<br />

The angle specified in set grid polar is also read and displayed in the units specified by set angles.<br />

set angles also affects the arguments of the machine-defined functions sin(x), cos(x) and tan(x), and<br />

the outputs of asin(x), acos(x), atan(x), atan2(x), and arg(x). It has no effect on the arguments of<br />

hyperbolic functions or Bessel functions. However, the output arguments of inverse hyperbolic functions<br />

of complex arguments are affected; if these functions are used, set angles radians must be in effect to<br />

maintain consistency between input and output arguments.<br />

x={1.0,0.1}<br />

set angles radians<br />

y=sinh(x)<br />

print y #prints {1.16933, 0.154051}<br />

print asinh(y) #prints {1.0, 0.1}<br />

but<br />

set angles degrees<br />

y=sinh(x)<br />

print y #prints {1.16933, 0.154051}<br />

print asinh(y) #prints {57.29578, 5.729578}<br />

See also<br />

poldat.dem:<br />

polar plot using set angles demo.<br />

36.2 Arrow<br />

Arbitrary arrows can be placed on a plot using the set arrow command.<br />

Syntax:<br />

set arrow {} {from } {to|rto }<br />

{ {arrowstyle | as }<br />

| {nohead | head | heads}<br />

{size ,}<br />

{filled | nofilled}<br />

{front | back}<br />

{ {linestyle | ls }<br />

| {linetype | lt }

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

Saved successfully!

Ooh no, something went wrong!