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.

5 BACKWARDS COMPATIBILITY <strong>gnuplot</strong> 4.3 19<br />

4.8.5 ai<br />

The Adobe Illustrator ai driver is outdated. Since Adobe Illustrator understands PostScript files, set<br />

terminal post level1 ... should be used instead.<br />

4.8.6 epslatex, pslatex, pstex<br />

The terminals supporting an output to latex augmented by PostScript commands have been consolidated.<br />

Many options are the same as in the postscript terminal.<br />

4.8.7 windows<br />

The windows terminal now supports enhanced text mode.<br />

4.9 Canvas size<br />

In earlier versions of <strong>gnuplot</strong>, some terminal types used the values from set size to control also the size<br />

of the output canvas; others did not. The use of ’set size’ for this purpose was deprecated in version 4.2.<br />

In version 4.3 almost all terminals now behave as follows:<br />

set term size , controls the size of the output file, or "canvas".<br />

Please see individual terminal <strong>documentation</strong> for allowed values of the size parameters. By default, the<br />

plot will fill this canvas.<br />

set size , scales the plot itself relative to the size of the canvas. Scale values less than<br />

1 will cause the plot to not fill the entire canvas. Scale values larger than 1 will cause only a portion of<br />

the plot to fit on the canvas. Please be aware that setting scale values larger than 1 may cause problems<br />

on some terminal types.<br />

The major exception to this convention is the PostScript driver, which by default continues to act as it<br />

has in earlier versions. Be warned that the next version of <strong>gnuplot</strong> may change the default behaviour of<br />

the PostScript driver as well.<br />

Example:<br />

set size 0.5, 0.5<br />

set term png size 600, 400<br />

set output "figure.png"<br />

plot "data" using lines<br />

These commands will produce an output file "figure.png" that is 600 pixels wide and 400 pixels tall.<br />

The plot will fill the lower left quarter of this canvas. This is consistent with the way multiplot mode<br />

has always worked, however it is a change in the way the png driver worked for single plots in version<br />

4.0.<br />

5 Backwards compatibility<br />

Gnuplot version 4.0 deprecated certain syntax used in earlier versions, but continued to recognize it.<br />

This is now under the control of a configuration option, and can be disabled as follows:<br />

./configure --disable-backwards-compatibility<br />

Notice: Deprecated syntax items may be disabled permanently in some future version of <strong>gnuplot</strong>.<br />

One major difference is the introduction of keywords to disambiguate complex commands, particularly<br />

commands containing string variables. A notable issue was the use of bare numbers to specify offsets,<br />

line and point types. Illustrative examples:<br />

Deprecated:

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

Saved successfully!

Ooh no, something went wrong!