X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 24 Mar 2012 04:53 AM by  anon
Can not change rgb_table and rgb_indices
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
24 Mar 2012 04:53 AM
    Hi, guys: I excute the fellowing example code: file = FILEPATH('convec.dat', $ SUBDIR=['examples', 'data']) z = READ_BINARY(file,DATA_DIMS=[248,248]) index = [30,60,90,120,150,220,255] c = CONTOUR(z, /FILL, ASPECT_RATIO=1, $ RGB_TABLE=39, RGB_INDICES=index, C_VALUE=index) and I want to change the rgb_table and rgb_indices, like c.rgb_table = 0 c.rgb_indices = index-15 but nothing change in the graphics window, why? dave

    Deleted User



    New Member


    Posts:
    New Member


    --
    26 Mar 2012 10:30 AM
    Dear Daikan, This seems to be a problem. I have created a report in our system to fix this problem for a future version of IDL. As you know then, the workaround will be to use the property only as an INIT property (i.e. inside the actual function call). You could do something like this: c = CONTOUR(z, /FILL, ASPECT_RATIO=1,RGB_TABLE=13, RGB_INDICES=index, C_VALUE=index) c = CONTOUR(z, /FILL, ASPECT_RATIO=1,RGB_TABLE=15, RGB_INDICES=index, C_VALUE=index, /current) note the use of the /current keyword. Cheers, Fernando Exelis VIS
    You are not authorized to post a reply.