Re: Adding Legends to Coyote Graphics Windows [message #87544 is a reply to message #87543] |
Fri, 14 February 2014 09:22   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
elisadelgadomena@gmail.com writes:
> Thanks for the quick answer. I will try that new.
> In any case I changed to al_legend and it worked! Before I was using legend.pro, I didn't know this one, and I assumed that I had to use cglegend when using cgplot (since the normal legend.pro was not working with cgplot).
> I kept the program as before, just changing from cglegend to al_legend and though the appearance of the eps opened with gb or similar is the same, when creating the pdf in latex nothing strange appears now.
Yes, AL_LEGEND does the smoke and mirror trick in a slightly different
way. It draws the legend twice, but then "erases" the first instance
by drawing a rectangle over the first instance in the background color.
My solution was an attempt to avoid drawing the entire legend twice. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|