SCALE3.pro isn't doing it's job [message #67492] |
Thu, 30 July 2009 13:53 |
Brian Daniel
Messages: 80 Registered: July 2009
|
Member |
|
|
I'm using the SCALE3 procedure to initialize the !P.T variable for a
3D scatter plot with the following commands:
xRange = [min(rot_image[0,*]),max(rot_image[0,*])]
yRange = [min(rot_image[1,*]),max(rot_image[1,*])]
zRange = [min(rot_image[2,*]),max(rot_image[2,*])]
print,'X Range:',xRange
print,'Y Range:',yRange
print,'Z Range:',zRange
Scale3,XRange=xRange,$
YRange=yRange,$
ZRange=zRange,$
Ax=45, Az=80
The problem is when I plot the axes using the "AXIS" command, they
plot as if their range is zero (little stubby nubs of an axis). In
fact, the ![XYZ].CRANGE variable is zero, shown here:
X Range: 3.5301928 27.507573
Y Range: -17.029453 11.361599
Z Range: -242.93368 205.39383
!X.CRANGE 0.0000000 0.0000000
!Y.CRANGE 0.0000000 0.0000000
!Z.CRANGE 0.0000000 0.0000000
Where the top set of numbers are my desired ranges and the bottom set
is what Scale3 is giving me. I even tried setting ![XYZ].RANGE, but I
still get the same result. I understand why the axes are nubs, I just
don't know how to fix it. HELP!
|
|
|