|
From: <v_...@uk...> - 2011-07-05 16:18:05
|
Hello! I have the following problem: There are some data in a matrix form like this: 2.5 2.5 2.4 2.4 2.4 2.4 2.4 2.4 2.4 2.4 2.3 2.3 2.3 2.3 2.3 2.3 2.3 2.1 2.1 2.1 2.1 2.2 2.2 2.1 1.9 1.9 1.9 1.9 2.1 2.1 2.1 1.7 1.7 1.7 1.7 2.0 2.3 2.1 2.0 1.6 1.6 1.6 1.6 1.9 2.0 1.9 1.5 1.5 1.5 1.5 1.8 1.9 1.8 1.4 1.4 1.4 1.5 1.7 2.2 1.8 1.7 1.4 1.4 1.4 1.5 1.7 As one can see, there are strings with different number of columns. The Gnuplot manual says that "pm3d ... allows plotting gridded as well as non-gridded data without preprocessing, even when the data scans do not have the same number of points." So I've tried to do it in the several ways, but failed. The last command I tried to use looks like this: gnuplot -e 'set terminal png; set pm3d map flush begin; set palette color negative; splot "mydata.txt" matrix with pm3d' I believe it is the part "flush begin" that must help plotting a matrix with different number of columns in the rows, isn't it? If someone has successfully plotted a matrix similar to mine, please give your example. P.S. By the way, there is an example of what I want to get here: http://gnuplot.sourceforge.net/demo/pm3d.html It is called "Datafile with different nb of points in scans; pm3d flush begin". Thank you. Vladimir ----- <v_...@uk...> |