comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to make color-scale legend
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to make color-scale legend [message #852] Mon, 12 April 1993 15:35 Go to previous message
ian is currently offline  ian
Messages: 26
Registered: February 1992
Junior Member
In article <34196@oasys.dt.navy.mil> ruckman@oasys.dt.navy.mil writes:
> Hello world,
>
> Is there a way to make a color-scale legend for a 3-D plot or image? By
> that I mean some sort of a color-coded strip or box showing the numeric
> values that correspond to various colors in the current color table.
>

Well, when I need such a box, I just make an array and fill each line with
a value from 0 to 255. The lines are in increasing or decreasing order. Then
I display it in an appropriate spot in the window, and read the screen into
a variable to make the combined image.

There may be a better way to do it, but this works for me.

|-Ian Novack (Particle Man)----------------------------ian@gomez.jpl.nasa.gov-|
| "I am trying to fill a silent moment with Jet Propulsion Lab |
| non-relevant conversation." -- Lt. Cmdr. Data Pasadena, CA |
|-Disclaimer: Had this been an actual opinion, it would still be mine.--------|
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Making help for your own functions & procedures
Next Topic: How to make 2-d plots in 3-d?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:33:40 PDT 2025

Total time taken to generate the page: 0.00488 seconds