Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: strange palette behavior for postscript terminal Followup-To: comp.graphics.apps.gnuplot Date: Wed, 17 Aug 2011 08:49:15 -0700 Organization: gnuplot development team Lines: 55 Message-ID: References: <277f6950-6b07-40a2-b9d2-c8110d17bb76@s2g2000vby.googlegroups.com> Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Wed, 17 Aug 2011 15:50:34 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="WEZLCPHRH3QJlZRyUKB04A"; logging-data="24281"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19079Nr8txu9MupXDGxUkek" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:f2P9p4XZId7gZU5mmwC8I7K9YSE= Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:543 Lucie Jilkova wrote: > Hello, > > 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. > > I'm using Version 4.4 patchlevel 3 @ System: Linux > 2.6.30.8-64.fc11.i586. The example minimal script could be as > following: > > ##### > reset > set view map > set palette model RGB defined (0.0 "white", 0.0 "white", 0.0 "blue", > 1.0 "blue") > set term postscript > set output 'map.eps' > 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 > unset output > set term wxt > reset > #### > > So there should be one white bin at [0,0] and the rest of bins blue. > But the output 'map.eps' shows more than one white bin... For wxt or > pdfcairo terminal the similar script works well. Please, does anybody > have an idea? It seems that you really want a 2D plot command and something other than palette-based coloring. How about something like set style data rgbimage ###################### red component #### green ######### blue plot '-' using 1:2:( ($3>0) ? 0 : 255 ):( ($3>0) ? 0 : 255):(255) > > Thanks! > Lucie