|
From: Cride5 <co...@bo...> - 2007-08-08 10:24:10
|
I have the following gnuplot script to generate a raster graph:
------------[ suitability.plt ]---------------
#set term postscript eps
#set output "suitability.eps"
set xrange [-0.5:14.5]
set yrange [14.5:-0.5]
set tics out
set xtics border nomirror
set ytics border nomirror
set palette model RGB maxcolors 5
set palette model RGB defined (0.6 "#000000", 0.7 "#444444", 0.8 "#888888",
0.9 "#CCCCCC", 1.0 "#FFFFFF")
set cbtics nomirror ("0.6" 0.64, "0.7" 0.72, "0.8" 0.80, "0.9" 0.88, "1.0"
0.96)
plot "suitability.txt" matrix with image
pause -1
------------[ end suitability.plt ]---------------
... and the following data ...
-----------------[ suitability.txt ]---------------
0.6 0.7 0.8 0.9 1.0 1.0 0.9 0.8 0.7 0.6 0.6 0.7 0.8 0.9 1.0
0.7 0.7 0.8 0.9 0.9 0.9 0.9 0.8 0.7 0.7 0.7 0.7 0.8 0.9 0.9
0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8
0.9 0.9 0.8 0.7 0.7 0.7 0.7 0.8 0.9 0.9 0.9 0.9 0.8 0.7 0.7
1.0 0.9 0.8 0.7 0.6 0.6 0.7 0.8 0.9 1.0 1.0 0.9 0.8 0.7 0.6
1.0 0.9 0.8 0.7 0.6 0.6 0.7 0.8 0.9 1.0 1.0 0.9 0.8 0.7 0.6
0.9 0.9 0.8 0.7 0.7 0.7 0.7 0.8 0.9 0.9 0.9 0.9 0.8 0.7 0.7
0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8
0.7 0.7 0.8 0.9 0.9 0.9 0.9 0.8 0.7 0.7 0.7 0.7 0.8 0.9 0.9
0.6 0.7 0.8 0.9 1.0 1.0 0.9 0.8 0.7 0.6 0.6 0.7 0.8 0.9 1.0
0.6 0.7 0.8 0.9 1.0 1.0 0.9 0.8 0.7 0.6 0.6 0.7 0.8 0.9 1.0
0.7 0.7 0.8 0.9 0.9 0.9 0.9 0.8 0.7 0.7 0.7 0.7 0.8 0.9 0.9
0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8
0.9 0.9 0.8 0.7 0.7 0.7 0.7 0.8 0.9 0.9 0.9 0.9 0.8 0.7 0.7
1.0 0.9 0.8 0.7 0.6 0.6 0.7 0.8 0.9 1.0 1.0 0.9 0.8 0.7 0.6
-----------------[ end suitability.txt ]---------------
The graph works fine when the terminal is set to X11, but when I try to
output to eps it seems to interpolate the data between the pixels resulting
in an unwanted smoothing effect. Does anyone know why it does this, and if
there is a way to stop it?
Cheers
--
View this message in context: http://www.nabble.com/Plotting-matrix-with-image---unwanted-interpolation-of-eps-output-tf4235414.html#a12050494
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|