I have something similar to the Matlab palette that I developed a while ago
for much the same reasons.  Mine doesn't have the orange part - I call it
"BGYPAL3" (for Blue-Green-Yellow palette).  It's crafted by hand, so could
be tweaked by anyone wishing to.  I use this verb:
stepsftn=: 3 : 0
NB.* stepsftn: vector of numbers from num, to num, in numsteps steps.
   'from to numsteps'=. y
   from+(to-from)*(numsteps-1)%~i.numsteps
)

in this fashion:

BGYPAL3=: ;stepsftn&.>0 60 30;62 80 30;80 100 26;102 140 85;142 210 43;220
255 42  NB. Red,
BGYPAL3=: BGYPAL3,:;stepsftn&.>0 100 55;102 140 30;142 224 86;228 255 85
          NB. Green,
BGYPAL3=: BGYPAL3,;stepsftn&.>0 255 45;250 88 116;86 130 44;132 200 51
           NB.  Blue
BGYPAL3=: <.0.5+|:BGYPAL3

You can view it like this - BGYPAL3 viewmat 10#,:i.256 - and compare it to
the Matlab one here:
http://blogs.mathworks.com/steve/2014/10/13/a-new-colormap-for-matlab-part-1-introduction/
.



On Wed, Nov 12, 2014 at 11:06 AM, bill lam <[email protected]> wrote:

> The plot looks like the role of rgb to be:
> green   for luminous
> blue      for cold / low
> red      for hot / high.
>
> Does anyone have spare time to waste and post a similar palette for
> viewmat?
>  On Nov 12, 2014 4:07 AM, "Jan-Pieter Jacobs" <[email protected]>
> wrote:
>
> > It's defined as linear interpolation between a list of RGB values.
> > I guess I can't send them without violating any license agreements the
> Uni
> > has, but there's a plot of their values in one of these answers:
> >
> >
> >
> http://www.mathworks.com/matlabcentral/answers/160332-rgb-values-for-2014b-default-colors
> >
> > I can imagine it's feasible to construct a similar thing different enough
> > to not be plagiarism :)
> >
> > 2014-11-11 20:28 GMT+01:00 Brian Schott <[email protected]>:
> >
> > > Jan-Pieter,
> > >
> > > Yes, that blog does seem to be exactly relevant.
> > > Could you tell how the parula palette is defined?
> > >
> > > On Tue, Nov 11, 2014 at 1:55 PM, Jan-Pieter Jacobs <
> > > [email protected]> wrote:
> > >
> > > > This issue is exactly why Mathworks changed the default color map in
> > > their
> > > > 2014b release.
> > > > There is an interesting series of blog posts about the motivation
> here
> > > [0].
> > > >
> > > > Maybe a similar default colormap would make sense for viewmat too?
> > > >
> > > > [0]:
> > > >
> > > >
> > >
> >
> http://blogs.mathworks.com/steve/2014/10/13/a-new-colormap-for-matlab-part-1-introduction/
> > > >
> > > > --
> > > (B=)
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to