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

Home » Public Forums » archive » Re: Title in iPlot
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: Title in iPlot [message #50861 is a reply to message #50860] Fri, 20 October 2006 06:50 Go to previous messageGo to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <MPG.1fa1b0da7a5a0cc9989d56@news.frii.com>,
David Fanning <news@dfanning.com> wrote:

> There must be some good reason why the Annotation Layer
> is specified in Normalize coordinates and the rest of
> the Plot stuff is in Data coordinates, but it escapes
> me right now. In any case, having the Plot title in
> normalized coordinates causes the title to bounce
> around quite a bit as you resize the window. It starts
> out just right, then it gets far away again, now it
> jumps right into the plot!

I think the answer here is "3-D plots". When I make a 3-D plot I want the text
to stay "on the glass", not rotate with the plot (and the data coordinate
system). In some cases you might want the text to rotate with the plot (a la
PLOT_3DBOX), but the downside is that the title can be impossible to read from
some viewing angles.

I'm not sure what you mean by jumping around. If I zoom the view like this,

itool_id = itGetCurrent(TOOL = itool_obj)
view_1_id = itool_obj -> FindIdentifiers('*VIEW_1')
rc = itool_obj -> DoSetProperty(view_1_id, 'CURRENT_ZOOM', 1.25)
itool_obj -> RefreshCurrentWindow

the text zooms also. I find this disconcerting, as it changes the "normalized"
coordinates, but this is the only way I can find to do this, as VIEW_1 has a
"Zoom factor" property, while the visualization layer (apparently) does not.

I suppose a possible solution is to add a second view with only an annotation
layer. That view could be left alone when the view containing the data is
zoomed.

By the way, wouldn't it be nice if you could use the Visualization Browser or
the Property Editor to get the ID's for all of the objects and properties? The
Visualization Browser says the property is "Zoom factor", while the actual ID is
"CURRENT_ZOOM". The only way I know to find these things is by fooling around
with FindIdentifiers

viz_ids = itool_obj -> FindIdentifiers('*Visualization Layer*')
PRINT, viz_ids

Ken
[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
Previous Topic: Re: Image and ROI Help
Next Topic: Re: Missing data and MPFITFUN

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

Current Time: Wed Oct 08 17:48:38 PDT 2025

Total time taken to generate the page: 0.00465 seconds