So, I have a file with 3 columns (and 40000 rows), .First column is x coordinate, second is the y coordinate and 3rd column is "how many" and I want to produce a contour plot from this file. I searched around and I managed to make it work with a solution from another post. But the ending result is of really low resolution:
[]
I tried tweaking the line "set dgrid3d 100,100,4" but it doesn't really do much. Any help? The end result should be like this:
EDIT: Code I'm using
set contour
unset surface
set cntrparam levels incr 0.0,0.1,1.0
set view map
set xrange [0:30]
set yrange [0:30]
set dgrid3d 100,100,4
set table "contour.txt"
splot 'this.txt'
unset table
unset contour
set surface
set table "dgrid.txt"
splot 'this.txt'
unset table
reset
set pm3d map
unset key
set palette defined (0 '#352a87', 1 '#0363e1',2 '#1485d4', 3 '#06a7c6', 4 '#38b99e', 5 '#92bf73', 6 '#d9ba56', 7 '#fcce2e', 8 '#f9fb0e')
set autoscale fix
set grid
splot 'dgrid.txt' w pm3d, 'contour.txt' w l lc rgb "black"