Re: Questions about IDL 8.0 [message #73732 is a reply to message #73729] |
Wed, 24 November 2010 07:34   |
Mark Piper
Messages: 198 Registered: December 2009
|
Senior Member |
|
|
On Nov 23, 4:12 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Nov 23, 8:44 pm, Leslie Sherrill <leslie.wel...@gmail.com> wrote:
>
>> (2) I'm trying to set up the z axis ticks and title to be at the back
>> of the surface plot. The z axis defaults to a location right in front
>> of the surface, and is often obscured by the data. I noticed that
>> even the documentation examples always show that z axis in front
>> rather than at the back of the y axis. Anyone know of a quick-fix?
>
> IDL> s=surface(dist(100),ztitle='Z')
> IDL> axes=s.axes
> IDL> foreach el,axes do if (el.title eq 'Z') then break ;find out
> which axis is Z
> IDL> el.hide=1 ;hide that axis
> IDL> za=axis('Z',location=[(s.xrange)[0],(s.yrange)[1],0d0]) ;make a
> new Z axis, at the back
Here's a way to move the existing Z axis:
IDL> s = surface(/test)
IDL> (s['zaxis']).location = [0, (s.yrange)[1], 0]
mp
|
|
|