label_contours.awk: obsolete syntax, both in the script and on the homepage



I'm trying to create plots where contour labels are placed next to the
contours themselves.
I've found *label_contours.awk* on the gnuplot.info web page, and --
after some tweaking-- it's doing its job.

However, I've noticed that the script generates a gnuplot plot script
that uses deprecated syntax.
Namely, the line that actually makes the final plot looks like this:

plot 'contour.dat' index 0 title '200' w l 0,\

instead of this:
plot 'contour.dat' index 0 title '200' w l lt 0,\

My self-compiled gnuplot 4.3 croaks on the original version.

The information that accompanies the awk script on the home page is
also obsolete:
"Example of use (from gnuplot):

set contour base; set cntrparam levels 15; unset surface
set term table; set out "contour.dat"
splot x*x+y*y
set out; set term pop
!awk -f label_contours.awk -v nth=10 textcolor=-1 inclt=1
contour.dat >tmp.gp
reset; load 'tmp.gp'"

'set term table' is not recognized anymore by current gnuplot
versions; 'set table "contour.dat"' seems to be the correct version.

Maybe the script and the home page should be updated to use current
syntax.

Best regards,
Péter Juhász
.



Relevant Pages

  • Re: plotting large datasets (DJ Delorie)
    ... You can label each graph with the yscale command. ... It is different than gnuplot, but it is the same as HP's post processor ... You could even write a super simple bash or ksh script that let you do ... The plot script would read the arguments, ...
    (Fedora)
  • Re: Gnuplot 4.2: Animated GIFs
    ... I am a bit confused about the demo script at the Gnuplot site, ... out they call a separate file "gnuplot.rot". ... All of these demos are distributed with gnuplot, ... "Are you trying to make a plot like the one at URL? ...
    (comp.graphics.apps.gnuplot)
  • Cant obtain Postscript output from Gnuplot 4.2
    ... The following script yields a complete Postscript file showing a ... simple plot when executed by Gnuplot 4.0 on Windows XP. ... But when I try the same script with Gnuplot 4.2, ...
    (comp.graphics.apps.gnuplot)
  • Re: Two zoom related questions and One script question
    ... I'm using a gnuplot script to plot some data, ... the zoom command re-reads the original data ...
    (comp.graphics.apps.gnuplot)
  • Re: mobile average
    ... My datafile contains only the raw values and I don't know how to ... There is also a gnuplot example in the demos that does a simplistic ... plot where data is not evenly spaced. ... set xtics border in scale 1,0.5 nomirror norotate offset character 0, ...
    (comp.graphics.apps.gnuplot)