pm3d does not draw anything

View: New views
2 Messages — Rating Filter:   Alert me  

pm3d does not draw anything

by whining_dwarf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I want to generate a pm3d plot the following way:

set pm3d map;
splot '<awk -f ~/bin/addblanks.awk  fine_grid_wfs_zint.txt' using 1:2:3;

using the following file:

fine_grid_wfs_zint.txt

The file is sorted and blanks are added as explained in the FAQ. However, it does not plot anything.
Upon unsetting pm3d, I obtain plots as they should be.

Any hint is appreciated, thanks.

Re: pm3d does not draw anything

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

'addblanks.awk' assumes that the 1st column contains the
row-values - i.e. fixed value while the values of the 2nd
column are stepped through.
this isn't the case in your data file (2nd column contains
the 'fixed' value).

you need to change '$1' to '$2' in the script:

$2 != prev {printf "\n"; prev=$2} # print blank line

whining_dwarf wrote:
Hi, I want to generate a pm3d plot the following way:

set pm3d map;
splot '<awk -f ~/bin/addblanks.awk  fine_grid_wfs_zint.txt' using 1:2:3;

using the following file:

fine_grid_wfs_zint.txt

The file is sorted and blanks are added as explained in the FAQ. However, it does not plot anything.
Upon unsetting pm3d, I obtain plots as they should be.

Any hint is appreciated, thanks.