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


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

Re: Bug on palette

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Bug on palette
Date Tue, 22 Oct 2013 14:20:59 -0700
Organization gnuplot development team
Lines 34
Message-ID <l46q6f$npj$1@dont-email.me> (permalink)
References <5be5ade1-cbfe-446b-8654-5719c250050f@googlegroups.com> <l3sj52$d27$1@dont-email.me> <ce8ed879-0c1d-4131-85e0-9ee3349f55d2@googlegroups.com> <l3ufqb$1q0$1@dont-email.me> <l3uiuj$jbi$1@dont-email.me> <146a306b-222a-4d8e-b28f-22f9a85e85be@googlegroups.com> <l419go$r86$1@dont-email.me> <372e927d-ddd3-4690-a5e9-603e83f1d8af@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 Tue, 22 Oct 2013 21:20:16 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="e947cb29d2533e27aa00183e80187dbb"; logging-data="24371"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+X6vT5vgalF/4ERNQk99gs"
User-Agent KNode/4.10.5
Cancel-Lock sha1:uLsM3RuvP45NhQRX9ByX0CL9U9I=
Xref csiph.com comp.graphics.apps.gnuplot:2178

Show key headers only | View raw


Vasilis wrote:
> 
> I would appreciate if you could issue a quick fix on 4.6 quite
> soon. In my program (www.fluka.org/flair) with 3000+ users, the
> most important information are the color-plots output of the
> particle simulation code and it is annoying to ask people to
> downgrade to 4.2 to get them right.

Modified code is now in the source repositories for both 4.6 and 4.7.  

Of course, that won't end up in distributed binary packages for quite
a while, so probably you should look at work-arounds that your users
can adopt immediately. 

One work-around already mentioned is to use "set palette maxcolors 4*N".
That avoids the problem for the specific palette you gave as an example.

Another option is to specify the palette itself in terms of continuous
functions.  That is, "set palette func ..." 
rather than "set palette defined ..."

The palette in your example can be described using commands:

  palred(gray)   =  4*gray-2
  palgreen(gray) = (gray<.75) ? 1-4*abs(0.5-gray) : 4*gray-3
  palblue(gray)  = (gray<.75) ? 1-4*abs(.25-gray) : 4*gray-3
  set palette func palred(gray), palgreen(gray), palblue(gray)
  set palette maxcolors 30

That's more than you'd want to type interactively, but a program
that produces gnuplot output could easily emit these commands 
instead of the "set palette defined ..." variant.

	Ethan

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


Thread

Bug on palette Vasilis <vvlachoudis@gmail.com> - 2013-10-18 03:32 -0700
  Re: Bug on palette Ethan A Merritt <merritt@u.washington.edu> - 2013-10-18 17:18 -0700
    Re: Bug on palette Vasilis <vvlachoudis@gmail.com> - 2013-10-19 01:28 -0700
      Re: Bug on palette Olaf Schultz <o.schultz@enhydralutris.de> - 2013-10-19 13:28 +0200
      Re: Bug on palette Olaf Schultz <o.schultz@enhydralutris.de> - 2013-10-19 13:37 +0200
      Re: Bug on palette Ethan A Merritt <EAMerritt@gmail.com> - 2013-10-19 10:34 -0700
        Re: Bug on palette Ethan A Merritt <EAMerritt@gmail.com> - 2013-10-19 11:28 -0700
          Re: Bug on palette Vasilis <vvlachoudis@gmail.com> - 2013-10-20 05:27 -0700
          Re: Bug on palette Vasilis <vvlachoudis@gmail.com> - 2013-10-20 08:59 -0700
          Re: Bug on palette Vasilis <vvlachoudis@gmail.com> - 2013-10-20 09:37 -0700
            Re: Bug on palette sfeam <sfeam@users.sourceforge.net> - 2013-10-20 12:05 -0700
              Re: Bug on palette Vasilis <vvlachoudis@gmail.com> - 2013-10-21 00:28 -0700
                Re: Bug on palette sfeam <sfeam@users.sourceforge.net> - 2013-10-22 14:20 -0700
                Re: Bug on palette Vasilis <vvlachoudis@gmail.com> - 2013-10-23 00:42 -0700

csiph-web