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

Home » Public Forums » archive » Adding Legends to Coyote Graphics Windows
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Adding Legends to Coyote Graphics Windows [message #87546 is a reply to message #87545] Fri, 14 February 2014 10:09 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
elisadelgadomena@gmail.com writes:

> It also works with the normal legend. Initially I thought it wasn't because the legend doesn't appear when plotting in the window but it does when saving in a ps, like al_legend.
> I also tried with cglegenditem__define but happens the same as with cglegend, so it should be related to that trick of drawing and erasing, as you said.

I wonder if it is just because I draw outside the PostScript window?
Could you find this code in the cglegenditem__define.pro code (about
line 450 in my version):

IF !D.Name EQ 'PS' THEN BEGIN
xx = 0.1
yy=1.25
xsize = !D.X_Size
ysize = !D.Y_Size
ENDIF ELSE BEGIN

And change it to this:

IF !D.Name EQ 'PS' THEN BEGIN
xx = 0.1
yy = 0.85
xsize = !D.X_Size
ysize = !D.Y_Size
ENDIF ELSE BEGIN

Does that make any difference?

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Writing an 8 Column array into a data file
Next Topic: 2D density plot and logarithmic axes

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

Current Time: Fri Oct 10 20:04:25 PDT 2025

Total time taken to generate the page: 0.64649 seconds