|
From: theozh <th...@gm...> - 2016-08-08 11:51:53
|
although there are a few examples at http://gnuplot.sourceforge.net/demo/ I still find it pretty confusing about plot, splot, matrix, with image, surface plot, contour plot or 2D/3D heatmap... Anyway, to my understanding if you have data which is not in a regular matrix, i.e. "non-gridded data" you first need to convert the data into a regular grid (see "set dgrid3d"). See example: non-gridded data Maybe the following code helps you? The file "RandomMesh.dat" consist of 3 columns with x y z data, so similar to your data. ####### Plot arbitrary mesh data reset set view map set dgrid3d 30,30,10 set palette rgbformulae 33,13,10 set multiplot layout 1,2 set surface unset contour splot "RandomMesh.dat" w pm3d unset surface set contour set cntrparam levels 10 splot "RandomMesh.dat" w pm3d unset multiplot ####### EOF |