hello there,
first time posting. i'm running IDL on Linux and i have a strange
behavior of bar_plot procedure. first time in a session it runs ok.
second time, colours are changed (i don't set any colour in
particular) and although the graph is plotted i end up with a message
'% Program caused arithmetic error: Floating illegal operand'. Only
restarting IDL make it back to normal behavior (.reset isn't enough).
any clues? i post the procedure below. i'd like to mention that i'm an
IDL beginner as well.
pro fig_phases, mix, age
label_array =
["B40","B40n","Ca_HK","HdA","HgA","CN1","CN2", "Ca4227",$
"G4300","Fe4383","Ca4455","Fe4531","C4668","Hbeta",$
"Fe5015","Mg1","Mg2","Mgb","Fe5270","Fe5335","Fe5406 ",$
"Fe5709","Fe5782","NaD","TiO1","TiO2","Ca8498","Ca8542 ",$
"Ca8662","Mg8807"]
retrieve_phases,mix,"sloan",age,"ms", ms
retrieve_phases,mix,"sloan",age,"sgb", sgb
retrieve_phases,mix,"sloan",age,"rgb", rgb
retrieve_phases,mix,"sloan",age,"hb", hb
retrieve_phases,mix,"sloan",age,"agb", agb
retrieve_phases,mix,"sloan",age,"tpagb", tpagb
retrieve_phases,mix,"sloan",age,"ms_tpagb", ms_tpagb
all_phases = ms_tpagb
ms_norm = ms / all_phases
sgb_norm = sgb / all_phases
rgb_norm = rgb / all_phases
hb_norm = hb / all_phases
agb_norm = agb / all_phases
tpagb_norm = tpagb / all_phases
print,n_elements(ms_norm),n_elements(label_array)
print,ms_norm
bar_plot, ms_norm, barnames=label_array
end
the procedure 'retrieve_phases' just reads a text file. the 3 first
parameters will give the name of the file to be read and the returning
array has 30 elements.
thanks
paula
|