|
From: Manfred S. <man...@gm...> - 2007-11-23 10:12:33
|
Hi, I tried to plot an overlay contour plot over a pm3d map, with labels. I encountered 2 issues: 1) The cited code example at http://gnuplot.sourceforge.net/scripts/index.html#tricks-here does not work, it seems outdated. "set term table; set out 'contour.dat' " does not work, this should probably be "set table 'contour.dat' ; ...; unset table" 2) Issue in the script "label_countours.awk": When doing gnuplot <<EOF set term png truecolor small size 512,320 set out "demoplot.png" set contour base; set cntrparam levels 15; unset surface set table "contour.dat" splot x*x+y*y unset table !awk -f label_contours.awk -v nth=10 textcolor=-1 inclt=1 contour.dat >tmp.gp reset; load 'tmp.gp' set output EOF I get # demo.sh gnuplot> plot 'contour.dat' index 0 title '200' w l 0, '' index 1 title '180' w l 1, '' index 2 title '160' w l 2, '' index 3 title '140' w l 3, '' index 4 title '120' w l 4, '' index 5 title '100' w l 5, '' index 6 title '80' w l 6, '' index 7 title '60' w l 7, '' index 8 title '40' w l 8, '' index 9 title '20' w l 9 ^ "tmp.gp", line 126: ';' expected The problem seems, "plot ... w l 0" is illegal, I don't know the initial intent, should this be "plot ... with lines linetype 0" ? I then removed the last character from these statement (i.e. "plot ... w l"), and it seemed to work somehow. After several attempts, I finally made it, but the whole procedure is really a mess. But besides this: Thanks a lot for this invaluable plotting program! Regards, Manfred |