set border 4095 front linetype -1 linewidth 1.000
set view map
set samples 50, 50
set isosamples 50, 50
unset surface
set style data pm3d
set style function pm3d
set ticslevel 0
set title "colour map,"
set xlabel "x"
set xrange [ 0.0000 : 50.0000 ] noreverse nowriteback
set ylabel "y"
set yrange [ 0.0000 : 50.0000 ] noreverse nowriteback
set zrange [ 0.0000 : 100.00000 ] noreverse nowriteback
set pm3d implicit at b
splot "asciidata.dat"
Data
# X Y Z
1 49 2
2 48 4
3 47 1
4 46 8
5 45 10
6 44 12
7 43 14
8 42 20
9 41 18
10 40 20
11 39 22
12 38 24
13 37 70
14 36 28
47 3 1
46 4 8
45 5 10
44 6 12
43 7 14
42 8 20
41 9 18
40 1 2 0
39 1 2 2
38 1 24
37 1 70
> Is there any possibility to draw a 2D color graph by using z as a
> color scale.
Yes, in recent versions of gnuplot (newer than 4.2.2) you can color
by z value in 2D plots. Current version is 4.2.4
You do not need to use the pm3d commands for this.
On Oct 10, 8:30 pm, sfeam <sf...@users.sourceforge.net> wrote:
> I am using version 4.2 patchlevel4.
> is there any clue how can I do without pm3d?
There are actually many different ways, depending on exactly what
king of plot you want to make.
Here is an example of 2D heat maps:
http://gnuplot.sourceforge.net/demo_4.3/heatmaps.html
> >> You do not need to use the pm3d commands for this.- Hide quoted text -
>
> - Show quoted text -
splot '...' with points palette
> I was looking to plot (a data like I wrote)
>
http://groups.google.com/group/comp.graphics.apps.gnuplot/browse_thread/thread/97f1692f12ebcb3b
> to get this image http://tinyurl.com/5nzmn6
> But macro which I find is not working for my data it gives "Axis
> range undefined due to improper data values. NaN? Inf?" error
> message.
It is possible that the auto-scaling code is not being triggered.
My guess is that if you set explicit ranges for z and for the
color palette, you will not see this problem.
MIN = 0.
MAX = 500.
set zrange [MIN:MAX]
set cbrange [MIN:MAX]
You probably need:
set cbrange [10:1000]
set xrange [-10:100]
set yrange ...
set zrange ...
---
PM
set xlabel 'A1'
set ylabel 'B1'
set view map
set palette rgbformulae 10,13,33
set cbrange [0:500]
set xrange [0:50]
set yrange [0:50]
set term png size 840,840
set output 'image.png'
splot 'ASCIIdata.txt' using 1:2:3 notitle with points palette ps 1 pt
5