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

Home » Public Forums » archive » IDLgrAxis: how to manipulate tickvalues? and to prevent strange stretching?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDLgrAxis: how to manipulate tickvalues? and to prevent strange stretching? [message #30531] Sun, 05 May 2002 09:26 Go to previous message
Harald von der Osten-[1] is currently offline  Harald von der Osten-[1]
Messages: 21
Registered: December 1999
Junior Member
Hallo,


how can I manipulate tickvalues in IDLgrAxis-objects?


What I would like to have is (I have mainly used code by David):

----start-------
; axes
xAxis = obj_new("IDLgrAxis",0, Color=[0,0,0], Ticklen=-0.04, Thick=2.0,
$
Minor=1, Title=xtitleObj,
Range=xrange,/exact,tickvalues=[-60,-40,-20,-0,20,40,60])
xAxis -> GetProperty, Ticktext=xAxisText
xAxisText -> SetProperty, Font=helvetica8pt, Recompute_Dimensions=2

yAxis = obj_new("IDLgrAxis",1, Color=[0,0,0], Ticklen=-0.05, Thick=2.0,
$
Minor=1, Title=ytitleObj,
Range=yrange,/exact,textpos=0,tickvalues=[-40,-20,0,20,40])
yAxis-> GetProperty, Ticktext=yAxisText
yAxisText -> SetProperty, Font=helvetica2pt, Recompute_Dimensions=2

zAxis = obj_new("IDLgrAxis",2, Color=[0,0,0], Ticklen=-0.03, Thick=2.0,
$
Minor=1, Title=ztitleObj,
Range=zrange,/exact,tickvalues=[445,455,465])
zAxis-> GetProperty, Ticktext=zAxisText
zAxisText -> SetProperty, Font=helvetica8pt, Recompute_Dimensions=2

----end-------


the 3-D data are in the range [8000 <= x <= 20000, 6000 <= y <= 14000]
but I would like to have them converted (see tickvalues as mentioned
above). Or have I to convert all the data before reading them into IDL?
(I don't want to do this)


Second question: How can I prevent the strange stretching of the labels
and tickvalues of the y-axis? I have changes the size of he font to 2pt,
and now the labels are similar to the labels of the x-Axis using 8pt.
But it is not satisfying....




Again thanks a lot for any help,

Harald





--
Harald von der Osten-Woldenburg
Geophysical Prospection of Archaeological Sites
National Heritage Department of Baden-Wuerttemberg
Silberburgstrasse 193, D-70178 Stuttgart
Fax Office: +49-(0)711-1694-707
http://www.lb.netic.de/hvdosten : Geomagnetics, Geoelectrics, Radar, EMI
[Message index]
 
Read Message
Read Message
Previous Topic: Mac OS X
Next Topic: suggestions?

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

Current Time: Fri Oct 10 10:12:08 PDT 2025

Total time taken to generate the page: 0.72191 seconds