Problem with al_legend in IDL [message #76303] |
Thu, 26 May 2011 10:48 |
Sasha Singh
Messages: 13 Registered: November 2010
|
Junior Member |
|
|
Hi,
I am plotting two datasets using symcat symbols and using al-legend to
show the legend.
This is how my little routine looks like:
ploterror, x, y, xerr, yerr, /xlog, /ylog, psym=symcat(16,
COLOR=cgColor('black')), xtitle='days', ytitle=textoidl('Peak flux
(\mu Jy)')
oplot, x1, y1, psym=symcat(14, COLOR=cgColor('grey'))
items = ['Best fit', 'No fit']
sym=[symcat(16, COLOR=cgColor('black')),symcat(14,
COLOR=cgColor('grey'))]
al_legend, items, psym=sym, /left
The problem here is that my final plot is legends 'Best Fit' and 'No
Fit' but both with the symbols of grey filled
diamonds, whereas, I will assume that the 'Best Fit' legend should
have black filled circle symbol and
'No fit' legend have grey diamond. I don't know what am I doing wrong.
If I use simple psym values such as sym=[2,3], the legend looks fine.
Please help.
Thanks
Sasha.
|
|
|