Re: Questions about IDL 8.0 [message #73746 is a reply to message #73745] |
Tue, 23 November 2010 15:17   |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Nov 23, 8:44 pm, Leslie Sherrill <leslie.wel...@gmail.com> wrote:
> (1) I have a widget program which is using the new IDL 8.0 graphics,
> and I finally figured out how I can access the plot commands in other
> widget programs. I am able to change things like axis titles, ranges,
> etc. However, when I change the color table and attempt to do a
> graphic.rgb_table=new_rgb_table that is associated with my new color
> table, nothing happens. In fact, it looks like the rgb_table and
> vert_colors commands are Init variables that cannot be re-defined
> later in the program. However, the new documentation indicates that
> the values are changeable. Has anyone else encountered this?
This works for me
IDL> rt0=rebin(reform(bindgen(256),1,256),3,256) ;make up a table
IDL> rt1=rebin(reform(reverse(bindgen(256)),1,256),3,256) ;make up
another table
IDL> im=image(dist(100),rgb_table=rt0) ;make an image with table rt0
IDL> im.rgb_table=rt1 ;switch the table to rt1
|
|
|