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

Home » Public Forums » archive » Re: Help with vert_colors and rgb_table
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: Help with vert_colors and rgb_table [message #82958 is a reply to message #82957] Tue, 29 January 2013 09:19 Go to previous messageGo to previous message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On Monday, January 28, 2013 10:33:20 AM UTC-7, justinclouds wrote:
>
> What I need is to be able to show the color scale in the plot area to give an indication of the scale on the z values. Also, can the color range in z values be controlled?
>

There are a few ways to handle this. If you have IDL 8.2, here's one:

x = 2*!pi*findgen(50)/49
y = sin(x)*cos(2*x)
z = round(randomu(1, 50)*100)
p = plot(x, y, 'o', $
/sym_filled, $
vert_colors=bytscl(z), $
rgb_table=39)
cb = colorbar(rgb_table=39, $
range=[0,100], $
position=[0.50, 0.20, 0.90, 0.23])

Note that I bytescaled the Z values.

mp
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: 3-D arrows
Next Topic: 2013 Collection Of Solution Manuals & Test Banks. More Than 15,000 Titles

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

Current Time: Fri Oct 10 10:20:23 PDT 2025

Total time taken to generate the page: 1.28051 seconds