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.

28 PLOT gnuplot 4.0 47<br />

This is the same, but uses t as the dummy-variable:<br />

plot [t = -10 :30]<br />

This sets both the x and y ranges:<br />

sin(pi*t)/(pi*t)<br />

plot [-pi:pi] [-3:3] tan(x), 1/x<br />

This sets only the y range, and turns off autoscaling on both axes:<br />

plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x)<br />

This sets xmax and ymin only:<br />

plot [:200] [-pi:]<br />

exp(sin(x))<br />

This sets the x range for a timeseries:<br />

See also<br />

set timefmt "%d/%m/%y %H:%M"<br />

plot ["1/6/93 12:00":"5/6/93 12:00"] ’timedata.dat’<br />

ranges demo.<br />

28.6 Title<br />

A line title for each function and data set appears in the key, accompanied by a sample of the line and/or<br />

symbol used to represent it. It can be changed by using the title option.<br />

Syntax:<br />

title "" | notitle<br />

where is the new title of the line and must be enclosed in quotes. The quotes will not be shown<br />

in the key. A special character may be given as a backslash followed by its octal value ("\345"). The tab<br />

character "\t" is understood. Note that backslash processing occurs only for strings enclosed in double<br />

quotes — use single quotes to prevent such processing. The newline character "\n" is not processed in<br />

key entries in either type of string.<br />

The line title and sample can be omitted from the key by using the keyword notitle. A null title (title<br />

’ ’) is equivalent to notitle. If only the sample is wanted, use one or more blanks (title ’ ’).<br />

If key autotitles is set (which is the default) and neither title nor notitle are specified the line title is<br />

the function name or the file name as it appears on the plot command. If it is a file name, any datafile<br />

modifiers specified will be included in the default title.<br />

The layout of the key itself (position, title justification, etc.) can be controlled by set key. Please see<br />

set key (p. 71) for details.<br />

Examples:<br />

This plots y=x with the title ’x’:<br />

plot x<br />

This plots x squared with title "x^2" and file "data.1" with title "measured data":<br />

plot x**2 title "x^2", ’data.1’ t "measured data"<br />

This puts an untitled circular border around a polar graph:<br />

set polar; plot my_function(t), 1 notitle<br />

28.7 With<br />

Functions and data may be displayed in one of a large number of styles. The with keyword provides<br />

the means of selection.<br />

Syntax:

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

Saved successfully!

Ooh no, something went wrong!