14.10.2014 Views

gnuplot documentation

gnuplot documentation

gnuplot documentation

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.

70 SET-SHOW <strong>gnuplot</strong> 4.3 85<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 />

70.1 Angles<br />

By default, <strong>gnuplot</strong> 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 3D 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 />

70.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 | backhead | heads}<br />

{size ,{,}}<br />

{filled | empty | nofilled}<br />

{front | back}<br />

{ {linestyle | ls }<br />

| {linetype | lt }<br />

{linewidth | lw

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

Saved successfully!

Ooh no, something went wrong!