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 #82957] Tue, 29 January 2013 09:56 Go to previous message
justinclouds is currently offline  justinclouds
Messages: 25
Registered: December 2012
Junior Member
On Tuesday, January 29, 2013 10:19:27 AM UTC-7, Mark Piper wrote:
> 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

That's what I needed. Thanks!
[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 08:23:47 PDT 2025

Total time taken to generate the page: 0.71832 seconds