comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » making a rainbow colour plot.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
making a rainbow colour plot. [message #91484] Mon, 20 July 2015 09:10 Go to next message
Cibi Raj is currently offline  Cibi Raj
Messages: 18
Registered: May 2015
Junior Member
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 !
Re: making a rainbow colour plot. [message #91485 is a reply to message #91484] Mon, 20 July 2015 09:29 Go to previous messageGo to next message
Cibi Raj is currently offline  Cibi Raj
Messages: 18
Registered: May 2015
Junior Member
On Monday, 20 July 2015 18:10:38 UTC+2, 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 !

I also tried this UMN> my_padplot_both,pd,COLOR=13,UNITS='flux',EBINS=[0L,8L]
As COLOR is also a keyword for the routine. But no success.
Re: making a rainbow colour plot. [message #91488 is a reply to message #91485] Mon, 20 July 2015 11:24 Go to previous messageGo to next message
Cibi Raj is currently offline  Cibi Raj
Messages: 18
Registered: May 2015
Junior Member
On Monday, 20 July 2015 18:29:45 UTC+2, Cibi Raj wrote:
> On Monday, 20 July 2015 18:10:38 UTC+2, 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 !
>
> I also tried this UMN> my_padplot_both,pd,COLOR=13,UNITS='flux',EBINS=[0L,8L]
> As COLOR is also a keyword for the routine. But no success.

I tried to define an integer array with the color keyword, but still not helpful.
Re: making a rainbow colour plot. [message #91491 is a reply to message #91484] Mon, 20 July 2015 11:48 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
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 !
Re: making a rainbow colour plot. [message #91492 is a reply to message #91491] Mon, 20 July 2015 12:33 Go to previous message
Cibi Raj is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Writing .mat files in IDL
Next Topic: map projection

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:10:32 PDT 2025

Total time taken to generate the page: 0.00359 seconds