Re: Colomap question
- From: "Ian Clarkson" <ian.clarkson@xxxxxxxxxxxxxx>
- Date: Thu, 3 Jan 2008 14:23:00 +0000 (UTC)
Hmm. My guess would be that it's exactly what you say the
problem is -- I think it may actually be working and you're
just not realizing it? Try setting your colormap, instead
of spectrum RGB, to a random vector like I did. See if it
changes when you replot it. Then set the vector to all red,
or something. Try it again. If the graph is responding, and
showing up in the proper colours, then it's probably
working.
Note that the default colormap IS jet, which, when plotted
over a range, does go from blue -> green -> red. It may
appear to be what you're looking for when in fact your
spectrumRGB vector is correct. I'm not quite sure how to
help you anymore than this, seeing as I can't make my code
break like yours without using the data you are.
"Ken Fleisher" <k-fleisher.donotspamme@xxxxxxx> wrote in
message <flil7l$8o6$1@xxxxxxxxxxxxxxxxxx>...
Thanks for looking into this, but I don't think that's it.triplets
The code where I call the colormap is the one that "does"
work. It's when I next supply scatter with the RGB
directly that it seems to fail. Now, it's possible that mywould
RGB values are being displayed correctly, but why then
the colormap code display something different (whichhappens
to be more like what I expect it to be--namely the purefill
spectral colors).
I should also note that I get the same "incorrect" result
when I use the RGB triplets with the plot() function to
in the color below the spectrum. (I'm trying to plot a
spectrum, such as D65, and fill in the graph between the
x-axis and the D65 line with the spectral colors that
correspond to the wavelength.)
Thanks.
Ken
.
- Follow-Ups:
- Re: Colomap question
- From: Ken Fleisher
- Re: Colomap question
- References:
- Colomap question
- From: Ken Fleisher
- Re: Colomap question
- From: Ian Clarkson
- Re: Colomap question
- From: Ken Fleisher
- Colomap question
- Prev by Date: Re: colormap in a GUI
- Next by Date: Re: optical flow
- Previous by thread: Re: Colomap question
- Next by thread: Re: Colomap question
- Index(es):
Relevant Pages
|