|
Re: Need Help on IDLgrAxis ! [message #44451 is a reply to message #44450] |
Fri, 17 June 2005 15:40  |
Michael Wallace
Messages: 409 Registered: December 2003
|
Senior Member |
|
|
naics wrote:
> Thanks for the response. I took a look at TICKTEXT it works fine if you
> want the user to create values that they want shown. However, the number
> of values you enter have to be the same lenght of the number of major tick
> values that are present. How do you find this number of major tick
> values?
You can get the tick text strings (see below) and see how many of them
there are. A better solution, while more complicated, is to set your
own number of major tickmarks, the data range, etc. Then you guarantee
yourself that you'll always get something logical, but it's more work.
> Another thing I had a question on is if you can get the string of numbers
> from TICKTEXT using GetProperty. The reason I want to do this is so that
> I can grab this array of string, convert them to integers, scale all of
> them by some value and then set them back to this object? I've had no
> luck so far. When I try to get this property, I receive an object and I
> don't know how to retreive the array of strings?
IDLgrAxis -> GetProperty, TICKTEXT = ticktext
ticktext -> GetProperty, STRINGS = strings
-Mike
|
|
|
Re: Need Help on IDLgrAxis ! [message #44452 is a reply to message #44451] |
Fri, 17 June 2005 15:26  |
naics
Messages: 8 Registered: April 2005
|
Junior Member |
|
|
Thanks for the response. I took a look at TICKTEXT it works fine if you
want the user to create values that they want shown. However, the number
of values you enter have to be the same lenght of the number of major tick
values that are present. How do you find this number of major tick
values?
Another thing I had a question on is if you can get the string of numbers
from TICKTEXT using GetProperty. The reason I want to do this is so that
I can grab this array of string, convert them to integers, scale all of
them by some value and then set them back to this object? I've had no
luck so far. When I try to get this property, I receive an object and I
don't know how to retreive the array of strings?
Thanks....
|
|
|
Re: Need Help on IDLgrAxis ! [message #44464 is a reply to message #44452] |
Fri, 17 June 2005 06:28  |
Antonio Santiago
Messages: 201 Registered: February 2004
|
Senior Member |
|
|
naics wrote:
> Hello,
>
> My problem is this, I've been successful in creating a three dimensional
> box that is able to hold various x/y/z slices. The axis has values that
> correspond to the the size of my 3D data, but I now want to change the
> numerical values on the axis (due to unit conversion issues) while still
> maintaining the original size of the box.
>
> My idea was to just change the "range" in my IDLgrAxis object but the
> changes the length of the axis.
>
> i.e.
>
> oXAxis = OBJ_NEW('IDLgrAxis', 0, COLOR=[255,255,255],RANGE=[0,xMax],$
> TITLE=oXTitle,TICKLEN=2,$
> XCOORD_CONV=[xs[0],xs[1]], $
> YCOORD_CONV=ys, $
> ZCOORD_CONV=zs, $
> /EXACT)
>
> I would greatly appreciate any suggestions. Thanks...
>
>
>
I have the same problem with an IDLgrSurface, but I used the TICKTEXT
keyword to do it, that is, I constuct by myself the numbers to be shown.
Bye :)
--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
|
|
|