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
|