Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #539

Re: strange palette behavior for postscript terminal

From Christoph Bersch <usenet@bersch.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: strange palette behavior for postscript terminal
Date Wed, 17 Aug 2011 09:18:21 +0200
Organization GWDG, Goettingen
Lines 37
Message-ID <j2fpvu$qbl$1@gwdu112.gwdg.de> (permalink)
References <277f6950-6b07-40a2-b9d2-c8110d17bb76@s2g2000vby.googlegroups.com>
NNTP-Posting-Host mpl1136.mpl.mpg.de
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace gwdu112.gwdg.de 1313565502 26997 141.5.32.136 (17 Aug 2011 07:18:22 GMT)
X-Complaints-To news@gwdg.de
NNTP-Posting-Date Wed, 17 Aug 2011 07:18:22 +0000 (UTC)
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110702 Icedove/3.0.11
In-Reply-To <277f6950-6b07-40a2-b9d2-c8110d17bb76@s2g2000vby.googlegroups.com>
Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.gwdg.de!.POSTED!not-for-mail
Xref x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:539

Show key headers only | View raw


Hi Lucie,

On 17.08.2011 05:41, Lucie Jilkova wrote:
>
> i've got a problem with (probably) a palette settings using postscript
> terminal. I'm plotting a 2D map and i want to set a palette so that
> all bins with values equal to 0.0 are mapped by white color, and all
> the other (non-zero) values by some different color.

The terminals have a limited resolution, by default the postscript 
terminal uses 8 bit, the lowest one is white, the rest is blue. That is 
why also e.g. 0.001 is painted white.
The maximum resolution of the postscript terminal is 12 bit (from the 
language specification), the cairo-terminals have higher resolution (16 
or 32 bit?). To see this, reduce the number of colors with the wxt 
terminal which gives you the same result as the postscript output:

reset
set view map
set terminal wxt
set palette model RGB defined \
     (0.0 "white", 0.0 "white", 0.0 "blue", 1.0 "blue")\
     maxcolors 2**8
splot '-' w image
0 0 0.0
0 1 0.1
0 2 0.01
1 0 0.001
1 1 0.0001
1 2 0.001
2 0 0.01
2 1 0.1
2 2 1.0
e
reset

Christoph

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

strange palette behavior for postscript terminal Lucie Jilkova <jilkoval@gmail.com> - 2011-08-16 20:41 -0700
  Re: strange palette behavior for postscript terminal Christoph Bersch <usenet@bersch.net> - 2011-08-17 09:18 +0200
    Re: strange palette behavior for postscript terminal Lucie Jilkova <jilkoval@gmail.com> - 2011-08-17 06:51 -0700
  Re: strange palette behavior for postscript terminal sfeam <sfeam@users.sourceforge.net> - 2011-08-17 08:49 -0700
    Re: strange palette behavior for postscript terminal Lucie Jilkova <jilkoval@gmail.com> - 2011-08-17 15:44 -0700

csiph-web