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.

77 TERMINAL <strong>gnuplot</strong> 4.3 193<br />

Syntax:<br />

set terminal tgif {portrait | landscape | default} {}<br />

{monochrome | color}<br />

{{linewidth | lw} }<br />

{solid | dashed}<br />

{font ""} {}<br />

where specifies the number of graphs in the x and y directions on the page, color enables color,<br />

linewidth scales all linewidths by , "" is the name of a valid PostScript font, and<br />

specifies the size of the PostScript font. defaults sets all options to their defaults: portrait,<br />

[1,1], color, linwidth 1.0, dashed, "Helvetica", and 18.<br />

The solid option is usually prefered if lines are colored, as they often are in the editor. Hardcopy will<br />

be black-and-white, so dashed should be chosen for that.<br />

Multiplot is implemented in two different ways.<br />

The first multiplot implementation is the standard <strong>gnuplot</strong> multiplot feature:<br />

set terminal tgif<br />

set output "file.obj"<br />

set multiplot<br />

set origin x01,y01<br />

set size xs,ys<br />

plot ...<br />

...<br />

set origin x02,y02<br />

plot ...<br />

unset multiplot<br />

See set multiplot (p. 114) for further information.<br />

The second version is the [x,y] option for the driver itself. The advantage of this implementation is that<br />

everything is scaled and placed automatically without the need for setting origins and sizes; the graphs<br />

keep their natural x/y proportions of 3/2 (or whatever is fixed by set size).<br />

If both multiplot methods are selected, the standard method is chosen and a warning message is given.<br />

Examples of single plots (or standard multiplot):<br />

set terminal tgif<br />

# defaults<br />

set terminal tgif "Times-Roman" 24<br />

set terminal tgif landscape<br />

set terminal tgif landscape solid<br />

Examples using the built-in multiplot mechanism:<br />

set terminal tgif portrait [2,4] # portrait; 2 plots in the x-<br />

# and 4 in the y-direction<br />

set terminal tgif [1,2] # portrait; 1 plot in the x-<br />

# and 2 in the y-direction<br />

set terminal tgif landscape [3,3] # landscape; 3 plots in both<br />

# directions<br />

77.66 Tkcanvas<br />

This terminal driver generates Tk canvas widget commands based on Tcl/Tk (default) or Perl. To use<br />

it, rebuild <strong>gnuplot</strong> (after uncommenting or inserting the appropriate line in "term.h"), then<br />

<strong>gnuplot</strong>> set term tkcanvas {perltk} {interactive}<br />

<strong>gnuplot</strong>> set output ’plot.file’<br />

After invoking "wish", execute the following sequence of Tcl/Tk commands:

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

Saved successfully!

Ooh no, something went wrong!