I need to create a 2D contour plot using gnuplot with data table. I'm not sure how to label the contours.
I cannot use splot feature to create contour labels because I would like to add 2D plots on top of contour plots.
Below is code to replicate to create a 2D contour plot. My question is how to create labels using the data table.
reset
f(x,y)=(x**2+y-11)**2+(x+y**2-7)**2
set xrange [0:5]
set yrange [0:5]
set isosample 250, 250
set table 'test1.dat'
splot f(x,y)
unset table
set contour base
set cntrparam levels disc 450,250,150,100,60,30,10,2
unset surface
set table 'cont1.dat'
splot f(x,y)
unset table
reset session
set terminal wxt size 800,600 enhanced font 'Verdana,10' persist
set style arrow 2 head nofilled size screen 0.03,15 ls 2 lc rgb "blue"
set xrange [0:5]
set yrange [0:5]
unset key
#set palette rgbformulae 33,13,10
p 'cont1.dat' w l lt -1 lw 1.5
Here is the cont1.dat
looks like based on running the above code. The final column is the label that I would like to have it the contour plot.