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

Home » Public Forums » archive » Problem with al_legend in IDL
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
Problem with al_legend in IDL [message #76303] Thu, 26 May 2011 10:48
Sasha Singh is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: rIDL command line replacement
Next Topic: Re: Problem with al_legend in IDL

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

Current Time: Wed Oct 08 13:53:25 PDT 2025

Total time taken to generate the page: 0.00530 seconds