Using gnuplot v5 patch 6 on windows 10 (wxt terminal)
I have a data file of 2D vectors arranged in six columns (x, y, v_x, v_y, v_mag, rho) that I'm trying to plot as a heatmap of v_mag against x and y. The plot generates fine, but it's always coming up with
"No dimension information for 80000 pixels total. Try 200 x 400"
But I have no idea where to specify this in the terminal.
I realise that I can use pm3d map for this, but this doesn't work without setting dgrid3d and that causes problems with plotting dots on top of the heatmap which I'm also doing. I also don't want to generate a matrix file just for the image plot since I need the vector data for analysis later.
In terms of an example, the plot will generate if I literally just write:
plot 'vectors.dat' using 1:2:5 with image, 'dots.dat' with dots
EDIT: added 'set pm3d' to example code
EDIT: example is now minimal code to produce desired plot
EDIT: example data file can be found here
Any help would be appreciated.
splot > Data-file > example datafile
in the gnuplot documentation: gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-742 – Christophpm3d
? It might be easier to to use theimage
plot style, see for example the second example in the heatmap demo. – user8153set pm3d
has no effect in your script, because it is overridden by thewith ...
settings. Note, that bothimage
andpm3d
are quite different, but both require a regular grid (same number of points in every isoline), does your data have that? Then adding the blank lines should help you, if not you should show the data file for further investigation. – Christoph