d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Coloring Lineid_plot In Idl > Hope This Is The Right Section ^_^
Add Reply New Topic New Poll
Member
Posts: 17,765
Joined: Jul 19 2009
Gold: 16,694.00
Jun 26 2014 02:08am
Hey you programmers out there,

first time I post in this section and I am quite unsure if I am right here, but I hope so ;P If not let me know =)


Facts:


As I am just making my degree in astophsics, I have to make a plot of a x-Ray spectrum including a lineplot ID, using this function:

http://idlastro.gsfc.nasa.gov/ftp/pro/plot/lineid_plot.pro


It all works great, could make the lines and name, and also inbound them in my spectrum, here is my code


Code

NameOfPeak = ['O!d'+ cggreek('alpha')+'!n','Cu!d'+cggreek('beta')+'!d 3,4','Cu!d'+cggreek('eta')+'!n ','Cu!d'+cggreek('beta')+'!d 1','Cu!d'+'l'+'!n','Cu!d'+cggreek('alpha')+'!d 1,2','Cu!d'+cggreek('eta')+'!n 2.Ordnung','Cu!d'+cggreek('beta')+ '!d 1' + '!n 2. Ordnung','Cu!d'+'l'+'!n 2.Ordnung','Cu!d'+cggreek('alpha')+'12 !n 2.Ordnung']
wl = [23.62,12.122,14.90,13.053,15.286,13.336,2*14.90,2*13.053,2*15.286,2*13.336]

lineid_plot,bin_x,ALOG10(bin_y),wl,id,/ext,PSYM=10,COLOR=120,XTITLE='Wellenlaenge [Angstroem]',YTITLE='Log(Zaehlrate) [1/s]'
OPLOTERROR,/nohat,PSYM=1,bin_x,ALOG10(bin_y),ALOG10(bin_y + bin_dy)-ALOG10(bin_y),COLOR=120


I will not give the predefinitions here, as they are not needed.

Question:

I need a keyword for the lineid_plot function, that will recolor the things written above the plot, in my case I want to color the whole "NameOfPeak" definded above.
I tried alot like
Code
COLOR= ; LINECOLOR= ....

and so on, but doesnt work :S



I use

IDL Version 8.2 on LINUX


Hope anyone can help,

thanks anyhow for reading and have a nice day!
Member
Posts: 17,765
Joined: Jul 19 2009
Gold: 16,694.00
Jun 29 2014 04:30am
Anyone?
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll