From: Petr M. <mi...@ph...> - 2004-05-26 11:28:09
|
Using a code like set pal maxcolor 5 set pm3d map splot x set out 'a.png'; set term png; replot set out 'a.ps'; set term post color; replot set out 'a.pdf'; set term pdf; replot set out 'a.svg'; set term svg; replot set out 'a.fig'; set term fig; replot I have noticed that: 1. X11 draws (maps) one color less. 2. pdf, svg give wrong mapping -- I've just fixed this, together with aquaterm. 3. postscript makes one color wrong only for 'set pal maxcolor 3'. The fix of 2. consists of using new routines rgb1maxcolors_from_gray() and rgb255maxcolors_from_gray() instead of rgb1_from_gray() and rgb255_from_gray(). Please somebody fix X11 terminal so that: - it maps correct number of colors, - the color mapping is exactly as in png. -- PM |