using LOCATIONS keyword of IDLgrText? [message #52404] |
Fri, 02 February 2007 06:36 |
Laurens
Messages: 41 Registered: May 2006
|
Member |
|
|
Hi, once again,
I'm starting to feel sorry for myself for not being able to find what I
want to know; I kinda kn�w that the solution should be somewhere in the
groups and somehow I think it could be constructed by all the
J.D.-Smith-bracket-fun on David's site, but I can't make anything out of
it (call me stupid lol).
Problem: I'm having an IDLgrText-object. I need multiple texts displayed
on a curve, so I already have an array of strings for that (keyword
STRINGS). I'm also creating an array for the positions for each string:
newPos = [x,y,z]
IF (n_elements(posArray) EQ 0) THEN $
posArray = [newPos] $
ELSE $
posArray = [posArray,[newPos]]
IDLgrText->SetProperty, POSITIONS=posArray
Somehow though, that doesn't work; the first text is displayed correctly
but the next ones go to 0,0,0 which tells me that IDL doesn't like the
positions somehow.
Is my expansion of the Array faulty or does the POSITIONS keyword just
not work :-) (one can always hope its not his own fault, right :P)
I'm thankful once again :-)
Cheers, Laurens
|
|
|