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 #34484 is a reply to message #34483] Wed, 19 March 2003 18:13 Go to previous messageGo 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:3E792137.60009@ee.uwa.edu.au...
> Mark Hadfield wrote:
> Where is the difference between this:
>
>> self->GetProperty, TICKTEXT=oticktext, TITLE=otitle
>> 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
>
> and that:
> zaxis->GetProperty, Ticktext=text
> text->SetProperty, Recompute_Dimensions=1

Where does "that" come from? Did I miss a message?

The differences are:

- "that" is a lot shorter

- My code ("this") allows for the possibility that TICKTEXT is an array of
IDLgrText object references. When IDL generates tick-text automatically it
creates a single object, but it is possible for an array of object
references to have been added via the axis's Init or SetProperty methods.

- My code also applies a default FONT property.

- As you noted elsewhere, my code allows self.recompute_dimensions to be
set by the MGHgrAxis object's Init or SetProperty methods, but the default
is 2. The IDL documentation describes in detail the difference between
RECOMPUTE_DIMENSIONS = 0, 1, and 2, but I assumed you could read that for
yourself. 2 see,s top do what I want.

--
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:51:38 PDT 2025

Total time taken to generate the page: 0.00359 seconds