next up previous contents index
Next: Features introduced in version Up: Gnuplot Previous: Canvas size   Contents   Index


Backwards compatibility

Gnuplot version 4.0 deprecated certain syntax used in earlier versions, but continued to recognize it. This is now under the control of a configuration option, and can be disabled as follows:


     ./configure --disable-backwards-compatibility

Notice: Deprecated syntax items may be disabled permanently in some future version of gnuplot.

One major difference is the introduction of keywords to disambiguate complex commands, particularly commands containing string variables. A notable issue was the use of bare numbers to specify offsets, line and point types. Illustrative examples:

Deprecated:

     set title "Old" 0,-1
     set data linespoints
     plot 1 2 4               # horizontal line at y=1

New:
     TITLE = "New"
     set title TITLE offset char 0, char -1
     set style data linespoints
     plot 1 linetype 2 pointtype 4

Another compatibility issue is the effect of the command set size outside when not in multiplot mode. In earlier versions, the command set size 4#4xx5#5, 4#4yy5#5 caused some terminals to change both the size of the plot and the size of the canvas is was drawn on; other terminatls changed only the plot size. The use of set size to change the canvas size is now deprecated.

Please see set size (p. [*]), set term size (p. [*]) and also the documentation for individual terminals.


next up previous contents index
Next: Features introduced in version Up: Gnuplot Previous: Canvas size   Contents   Index
2007-12-10