Reputation: 17
I have a file (32 values for x and y-axis each ), 2D simulation output, and want to draw a palette plot in Gnuplot. I find that the pm3d map is suitable for its representation. I am using the following commands:
set xrange[0:32]
set yrange[0:32]
set mp3d map
splot 'contour.dat'
But apparently, the map is missing from the figure. It only shows the borders and other related stuff but not the main map Image by Gnuplot. The figure generated from the excel plot looks like that Excel generated picture. My data (screenshot of Notepad file) is given as: Data. So my concern is what commands are needed to have that map?
Upvotes: 0
Views: 327
Reputation: 15093
The keyword matrix
is what you need for data in that form. Without it, the program will expect each line of the file to contain a single x,y,z value.
set view map
splot 'contour.dat' matrix with pm3d
Upvotes: 1