Understood.

But, to better illustrate what I was trying to say, when I compare

   BGYPAL2 viewmat i.256
   (((i.256)e.15*i.18)#BGYPAL2) viewmat i.256

The 18 entry palette looks slightly smoother, to me, than the 256
entry palette. (I see the same issue, to a lesser extent, with
BYPAL3.)

And, of course, I already mentioned that I couldn't see a difference
between a two entry (black,white) palette and GRAYPAL.

I don't know if that's an artifact of my system, or maybe my eyes are
wonky. But it's something to think about.

Thanks,

-- 
Raul

On Tue, Sep 7, 2021 at 5:06 PM Devon McCormick <[email protected]> wrote:
>
> I suspect there are duplicate entries in that one because it was the first
> one I generated.  The other two are tweaked versions where I was more
> careful to avoid duplicates.
>
> On Tue, Sep 7, 2021 at 2:38 PM Raul Miller <[email protected]> wrote:
>
> > Got it.
> >
> > And, these are all 256 row palettes. So, using them with viewmat i.256
> > shows their full details.
> >
> > That said, to my eye, these look identical:
> >
> >    GRAYPAL viewmat i.256
> >    (0 0 0,:255) viewmat i.256
> >
> > I do see some subtle differences between BGYPAL and BGYPAL2 / BGYPAL3
> >
> > I was noticing things in there like brightnessAdjust and MYPLOT and
> > wondering about them. But I can ignore them if they're not relevant.
> >
> > On the other hand,
> >    $BGYPAL
> > 256 3
> >    $~.BGYPAL
> > 254 3
> >
> > I suppose it might be useful to have repeated palette entries, to
> > suppress some details from view?
> >
> > Thanks,
> >
> > --
> > Raul
> >
> > On Tue, Sep 7, 2021 at 12:56 PM Devon McCormick <[email protected]>
> > wrote:
> > >
> > > The main results you might care about are the resulting palettes in the
> > > globals ADJPAL, BGYPAL, BGYPAL2, BGYPAL3, FULLSPECPAL, and GRAYPAL.
> > > The "BGY..." ones are limited to blue, green, and yellow, from dark to
> > > light.  The others are as documented; all are an attempt to put colors
> > in a
> > > logical, linear order so there are numerous ways to accomplish this as
> > can
> > > be seen by comparing FULLSPECPAL to ADJPAL.
> > > FULLSPECPAL: black->dark
> > > blue->green->cyan->purple->red->orange->yellow->almost white
> > > ADJPAL: black->dark
> > > blue->green->greyish->purple->red->orange->yellow->almost white
> > > GRAYPAL: black->shades of gray->white
> > > BGYPALn: Blue->Green->Yellow palettes (hand-tweaked)
> > >
> > >
> > > On Tue, Sep 7, 2021 at 11:48 AM Raul Miller <[email protected]>
> > wrote:
> > >
> > > > Well, this line threw an error:
> > > >
> > > > NB* sombrero: the "sombrero" function
> > > > (https://en.wikipedia.org/wiki/Sombrero_function)
> > > >
> > > > After fixing that NB, I got it to load.
> > > >
> > > > That said, it has some stuff in it that I can't use (for example, LD)
> > > > and I'm not sure what all of it does. I'll have to find time to
> > > > experiment with it.
> > > >
> > > > Thanks,
> > > >
> > > > --
> > > > Raul
> > > >
> > > > On Tue, Sep 7, 2021 at 10:22 AM Devon McCormick <[email protected]>
> > > > wrote:
> > > > >
> > > > > Okay, I've added "stepsftn" - it was it a utility file that I have
> > loaded
> > > > > by default.
> > > > > Please let me know if you notice any other missing routines.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Devon
> > > > >
> > > > > On Tue, Sep 7, 2021 at 12:43 AM Raul Miller <[email protected]>
> > > > wrote:
> > > > >
> > > > > > I thought that I had searched for roundNums on that page and not
> > found
> > > > > > a definition.
> > > > > >
> > > > > > That said, I see it now,
> > > > > >
> > > > > > That said, it's used on that page before it's defined.
> > > > > >
> > > > > > That said, now that I have it defined, I am getting a value error
> > on
> > > > > > stepsftn which I see referenced 10 times on that page (but no
> > > > > > definition -- I've triple checked, and am not seeing a definition
> > for
> > > > > > stepsftn)..
> > > > > >
> > > > > > I imagine we can work through this, but I'm not there yet
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > --
> > > > > > Raul
> > > > > >
> > > > > > On Tue, Sep 7, 2021 at 12:27 AM Devon McCormick <
> > [email protected]>
> > > > > > wrote:
> > > > > > >
> > > > > > > "roundNums" is the last definition on the page.   Did you copy
> > the
> > > > whole
> > > > > > > thing?
> > > > > > >
> > > > > > >
> > > > > > > On Mon, Sep 6, 2021 at 9:41 PM Raul Miller <
> > [email protected]>
> > > > > > wrote:
> > > > > > >
> > > > > > > > I get a value error on roundNums when I try loading that
> > script.
> > > > > > > >
> > > > > > > > For a black and white (and shades of gray) palette, I guess I
> > like
> > > > 0 0
> > > > > > > > 0,:255
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > --
> > > > > > > > Raul
> > > > > > > >
> > > > > > > >
> > > > > > > > On Mon, Sep 6, 2021 at 8:33 PM Devon McCormick <
> > [email protected]
> > > > >
> > > > > > wrote:
> > > > > > > > >
> > > > > > > > > There are a number of palettes I have found useful here:
> > > > > > > > >
> > https://code.jsoftware.com/wiki/User:Devon_McCormick/Palettes .
> > > > > > > > >
> > > > > > > > > On Mon, Sep 6, 2021 at 3:16 PM Raul Miller <
> > > > [email protected]>
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > I was poking through the viewmat code, and noticed a couple
> > > > things
> > > > > > > > > > that might be of interest.
> > > > > > > > > >
> > > > > > > > > > First, is that viewmat has a default palette, which you
> > can see
> > > > > > here:
> > > > > > > > > >
> > > > > > > > > >    load'viewmat'
> > > > > > > > > >    viewmat i.6
> > > > > > > > > >
> > > > > > > > > > Viewmat uses linear interpolation between the palette
> > colors to
> > > > > > > > > > represent position in the range of values it's displaying.
> > > > > > > > > >
> > > > > > > > > > If you want to see how it blends, you could do something
> > like
> > > > this:
> > > > > > > > > >    viewmat i.60
> > > > > > > > > >
> > > > > > > > > > If you want to supply your own palette, you can do that
> > also.
> > > > > > Palettes
> > > > > > > > > > are three column lists of colors, with 0 0 0 for black,
> > 255 0
> > > > 0 for
> > > > > > > > > > red, 0 255 0 for green, 0 0 255 for blue and 255 255 255
> > for
> > > > white.
> > > > > > > > > >
> > > > > > > > > > For example:
> > > > > > > > > >    (255*=i.3) viewmat i.3
> > > > > > > > > >    (255*#:i.8) viewmat i.8
> > > > > > > > > >
> > > > > > > > > > Finally, getvm1_jviewmat_ generates the bitmap it uses.
> > > > > > > > > >
> > > > > > > > > > For example:
> > > > > > > > > >    0 {:: ''getvm1_jviewmat_ i.3 3
> > > > > > > > > >      255    40959    65471
> > > > > > > > > >    65311  8388352 16768768
> > > > > > > > > > 16727808 16711775 16711935
> > > > > > > > > >
> > > > > > > > > > The left argument is not optional, and is the palette (the
> > > > default
> > > > > > > > > > palette for an empty left argument). Each pixel in the
> > bitmap
> > > > is
> > > > > > one
> > > > > > > > > > integer. So another way to see the default palette is:
> > > > > > > > > >
> > > > > > > > > >    256#.inv 0 {:: ''getvm1_jviewmat_ i.6
> > > > > > > > > >   0   0 255
> > > > > > > > > >   0 255 255
> > > > > > > > > >   0 255   0
> > > > > > > > > > 255 255   0
> > > > > > > > > > 255   0   0
> > > > > > > > > > 255   0 255
> > > > > > > > > >
> > > > > > > > > > (Note that there's a leading 1 dimension on this result,
> > since
> > > > a
> > > > > > > > > > bitmap is a rank 2 array. You could use {. to discard that
> > > > leading
> > > > > > > > > > dimension.)
> > > > > > > > > >
> > > > > > > > > > FYI,
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Raul
> > > > > > > > > >
> > > > > >
> > ----------------------------------------------------------------------
> > > > > > > > > > For information about J forums see
> > > > > > http://www.jsoftware.com/forums.htm
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > >
> > > > > > > > > Devon McCormick, CFA
> > > > > > > > >
> > > > > > > > > Quantitative Consultant
> > > > > > > > >
> > > > > >
> > ----------------------------------------------------------------------
> > > > > > > > > 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
> > > > > > >
> > > > > > > Quantitative Consultant
> > > > > > >
> > > > ----------------------------------------------------------------------
> > > > > > > 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
> > > > >
> > > > > Quantitative Consultant
> > > > >
> > ----------------------------------------------------------------------
> > > > > 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
> > >
> > > Quantitative Consultant
> > > ----------------------------------------------------------------------
> > > 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
>
> Quantitative Consultant
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to