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

Home » Public Forums » archive » Re: IDLgrAxis and scaling
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: IDLgrAxis and scaling [message #34491 is a reply to message #34486] Wed, 19 March 2003 13:27 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Thomas Gutzler" <tgutzler@ee.uwa.edu.au> wrote in message
news:3E783423.4080505@ee.uwa.edu.au...
> Hi,
>
> I tried to prevent the axis-text to be scaled while scaling a model with
> the axes added.

This is controlled by the RECOMPUTE_DIMENSIONS property of the axis-text
IDLgrText objects. Default is 0; you should use 1 or 2.

It's easy to specify RECOMPUTE_DIMENSIONS for a text object you create
yourself. But the tick-label objects are generated automatically, so you
have to hunt them down. My MGHgrAxis object does this. The axis object keeps
properties FONT and RECOMPUTE_DIMENSIONS, which it applies to all the text
objects it manages. The code looks like this:

self->GetProperty, TICKTEXT=oticktext, TITLE=otitle
if obj_valid(otitle) then begin
otitle->SetProperty, RECOMPUTE_DIMENSIONS=self.recompute_dimensions
otitle->GetProperty, FONT=font
if not obj_valid(font) then otitle->SetProperty, FONT=self.font
endif
for i=0,n_elements(oticktext)-1 do begin
if obj_valid(oticktext[i]) then begin
oticktext[i]->SetProperty, $
RECOMPUTE_DIMENSIONS=self.recompute_dimensions
oticktext[i]->GetProperty, FONT=font
if not obj_valid(font) then $
oticktext[i]->SetProperty, FONT=self.font
endif
endfor

To look at this code in context, see

http://www.dfanning.com/hadfield/README.html

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Error compiling procedure already compiled
Next Topic: Re: Ctrl-C keyboard event missing

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

Current Time: Wed Oct 08 16:52:33 PDT 2025

Total time taken to generate the page: 0.00376 seconds