Robert12
Robert12

Reputation: 17

Which commands are needed to get the correct pm3d map in Gnuplot?

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

Answers (1)

Ethan
Ethan

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

Related Questions