Re: making a rainbow colour plot. [message #91492 is a reply to message #91491] |
Mon, 20 July 2015 12:33  |
Cibi Raj
Messages: 18 Registered: May 2015
|
Junior Member |
|
|
On Monday, 20 July 2015 20:48:57 UTC+2, wlandsman wrote:
> It is not clear from your question whether you are reloading the image after running loadct
> LOADCT will not change the colors of any images that are already displayed.
>
> http://www.exelisvis.com/Support/HelpArticles/TabId/185/ArtM ID/800/ArticleID/4287/4287.aspx
>
> On Monday, July 20, 2015 at 12:10:38 PM UTC-4, Cibi Raj wrote:
>> Hey all, i am making a plot of pitch angle versus Eflux ( eV7sec/cm2/ster/ev) for the data obtained by Wind Spacecraft. it contains 9 plots ranging from high ev to low ev.I am using padplot_both.pro to get it:
>>
>> my_padplot_both,pd,UNITS='flux',EBINS=[0L,8L]
>>
>> I wanted to get it in colour, so i loaded the color table with loadact.pro following the above command:
>>
>> UMN> loadct,39
>> % LOADCT: Loading table Rainbow + white
>> UMN> device,decomposed=0
>>
>> But still I coulnt get the plot in colour. Where am I doing the mistake ?
>>
>> Will be helpful. thanks in advance !
thank you for the reply ! yes i later learnt that. so the routine i use itself contain a keyword for color. the routine is:
UMN> my_padplot_both,pd,COLOR=13,UNITS='flux',EBINS=[0L,8L]
Here I need to define colour as an array of long/integers specifying the colors associated with each energy bin value. So I tried :
UMN> my_padplot_both,pd,COLOR=INTGEN(39),UNITS='flux',EBINS=[0L,8 L]
But still I couldnt get the rainbow colours. Is the array of integers I defined wrong ?
By the way UMN is the university of minnesota wind software library i am using it in IDL.
|
|
|