manpagez: man pages & more
info gnuplot
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5 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 size outside when not in multiplot mode. In earlier versions, the command `set size <xx>, <yy>` 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 size to change the canvas size is now deprecated.

Please see size, size and also the documentation for individual terminals.


© manpagez.com 2000-2025
Individual documents may contain additional copyright information.