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

Home » Public Forums » archive » automatic placement of legend in 2-D graph
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: automatic placement of legend in 2-D graph [message #58285 is a reply to message #58172] Thu, 24 January 2008 16:31 Go to previous messageGo to previous message
Jean-Paul Davis is currently offline  Jean-Paul Davis
Messages: 17
Registered: March 1998
Junior Member
Okay, one last contribution to a discussion with myself. Hey, if it
saves someone else grief, then it's worthwhile.

I studied the IDL code for IDLgrLegend and found that the "recompute"
property gets reset to zero at the end of each pass through the
ComputeProperties method. It never seemed to work because recompute
was always set back to zero by the time I tried to obtain the
dimensions. The easy workaround is just to make sure you first set
recompute=1 immediately prior to each use of the ComputeProperties
method. Hence,

olegend -> setproperty, /recompute
lsize = olegend -> computedimensions(owin)

gives different values in lsize before and after changing the
viewplane rectangle.

I also figured out that I do NOT need the extra model object in my
previous post just to translate the legend separately... IDLgrLegend
inherits its own copy of the Translate method from IDLgrModel, so I
can translate just the legend by itself even if it's in the same model
with other objects.

I also think I have an algorithm that will work for my original
question, but I'm not sharing that unless someone is really, really
interested (and unless I prove it to actually work).

Jean-Paul
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Travel Destination: Holland
Next Topic: Re: Re-gridding Problem

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

Current Time: Fri Oct 10 09:00:58 PDT 2025

Total time taken to generate the page: 0.32381 seconds