Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!df3g2000vbb.googlegroups.com!not-for-mail From: Lucie Jilkova Newsgroups: comp.graphics.apps.gnuplot Subject: Re: strange palette behavior for postscript terminal Date: Wed, 17 Aug 2011 15:44:21 -0700 (PDT) Organization: http://groups.google.com Lines: 20 Message-ID: <2c53dea0-67fa-470c-8e97-336cc75554e2@df3g2000vbb.googlegroups.com> References: <277f6950-6b07-40a2-b9d2-c8110d17bb76@s2g2000vby.googlegroups.com> NNTP-Posting-Host: 134.171.162.189 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1313621150 14190 127.0.0.1 (17 Aug 2011 22:45:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 17 Aug 2011 22:45:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: df3g2000vbb.googlegroups.com; posting-host=134.171.162.189; posting-account=kj9GPwoAAACtiEUrmwzq8Vv9cp8RwmRO User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090909 Fedora/3.5.3-1.fc11 Firefox/3.5.3,gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:544 @ sfeam: thanks for your suggestion, but the matrix i gave was just an minimal example. For my actual data, i need a more complicated palette for the nonzero values... so far, it seems fine with using the pdfcairo terminal. On Aug 17, 11:49=A0am, sfeam wrote: > > 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 #### =A0 green ######### =A0 blue > plot '-' using 1:2:( ($3>0) ? 0 : 255 ):( ($3>0) ? 0 : 255):(255) > > >