# Deprecated syntax

Gnuplot version 4 deprecated certain syntax used in earlier versions but provided a configuration option that allowed backward compatibility. Support for the old syntax has now been removed.

Deprecated in version 4 and removed in version 5:

         set title "Old" 0,-1
         set data linespoints
         plot 'file' thru f(x)
         plot 1 2 4               # horizontal line at y=1
         update

Current equivalent:

         TITLE = "New"
         set title TITLE offset char 0, char -1
         set style data linespoints
         plot 'file' using 1:(f(column(2)))
         plot 1 linetype 2 pointtype 4
         save fit "filename"

Deprecated in version 5

         if (defined(VARNAME)) ...
         set style increment user
         call 'script' 1.23 ABC
            (in script:  print $0, "$1", "number of args = $#")
         set fontpath
         set clabel
         fit control variables FIT_*

Current equivalent:

         if (exists("VARNAME")) ...
         set linetype
         call 'script' 1.23 "ABC"
            (in script:  print ARG1, ARG2, "number of args = ", ARGC
         set cntrlabel
         set fit <option> <value>

Deprecated in version 5.4

         # use of a file containing `reread` to perform iteration
         N = 0;  load "file-containing-reread";
         file content:
             N = N+1
             plot func(N,x)
             pause -1
             if (N<5) reread

Current equivalent

         do for [N=1:5] {
             plot func(N, x)
             pause -1
         }