- #1
s_hy
- 61
- 0
Hi all,
I used below bash command to plot my data (.dat file)
but I got this warning:
As I know, to map using gnuplot for 3d density mapping, I should have output with blank lines to separate different x values, like this
but, if I have a few thousand lines, with 200 .dat files, what can I do to expedite my job? Anyone can help...thank you in advance.
I used below bash command to plot my data (.dat file)
Code:
#!/bin/bash
(
echo 'set term jpeg'
echo 'set style data lines'
echo 'set yrange [0:200]'
echo 'set xrange[0:200]'
echo 'set pm3d map'
echo 'set palette defined (-2 "yellow", 0 "green", 2 "red")'for f in "$@"
do
# echo "Processing $f" >&2
pic_name="${f%.dat}.jpg"
echo "set out '$pic_name'"
echo "splot '$f'"
done) | gnuplot
but I got this warning:
Warning: Single isoline (scan) is not enough for a pm3d plot.
Hint: Missing blank lines in the data file? See 'help pm3d' and FAQ.
As I know, to map using gnuplot for 3d density mapping, I should have output with blank lines to separate different x values, like this
Code:
-180.0 -180.0 0.0
-180.0 -179.0 0.2
[...]
-180.0 180.0 0.0
-179.0 -180.0 0.4
-179.0 -179.0 0.2
[...]
-179.0 180.0 0.0
[...]
but, if I have a few thousand lines, with 200 .dat files, what can I do to expedite my job? Anyone can help...thank you in advance.
Last edited: