X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Jun 2011 10:28 AM by  anon
IDL 8.1 Colorbar without RGB_TABLE
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:20
New Member


--
17 Jun 2011 10:28 AM
    Hi! Anyone knows how to create a colorbar without using an RGB color table (i.e. with your self-created color array)? Thnx, Wouter

    Deleted User



    New Member


    Posts:
    New Member


    --
    17 Jun 2011 02:58 PM
    Hi, what do you mean by "without using an RGB color table" : - a pre-defined color table ? a "self-created color array" should be define in RGB :s maybe you can add you color table to the IDL color table using the "MODIFYCT" procedure, and after you call it when defining the colorbar. Vincent

    Deleted User



    New Member


    Posts:10
    New Member


    --
    21 Jun 2011 08:44 AM
    You can use a 3x256 array for the RGB_TABLE. ARR = BYTARR(3,256) ARR(0,*) = R ARR(1,*) = G ARR(2,*) = B i = IMAGE(img, rgb_table = arr)
    You are not authorized to post a reply.