Re: Questions about IDL 8.0 [message #73745 is a reply to message #73744] |
Tue, 23 November 2010 15:27   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 11/23/10 4:05 PM, Gray wrote:
> On Nov 23, 5:44 pm, Leslie Sherrill<leslie.wel...@gmail.com> wrote:
>> I have two issues with plotting in the new IDL 8.0. They seem like
>> fairly straightforward problems, but I can't seem to find a way around
>> them. I'd be grateful of any advice you can give me.
>>
>> (1) I have a widget program which is using the new IDL 8.0 graphics,
>> and I finally figured out how I can access the plot commands in other
>> widget programs. I am able to change things like axis titles, ranges,
>> etc. However, when I change the color table and attempt to do a
>> graphic.rgb_table=new_rgb_table that is associated with my new color
>> table, nothing happens. In fact, it looks like the rgb_table and
>> vert_colors commands are Init variables that cannot be re-defined
>> later in the program. However, the new documentation indicates that
>> the values are changeable. Has anyone else encountered this?
>>
>> (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?
>>
>> Thanks in advance,
>> Leslie Sherrill
>
> Hm. For the first one, I have no idea.
>
> For the second, you can add another Z axis with the AXIS function, but
> I see no way to suppress a single axis in the original SURFACE call.
> Are the axes in a SURFACE object themselves AXIS objects? If so, then
> being able to access their properties with surface.axis.property would
> be extremely useful.
>
This should make an axis in the back instead of the front (without just
rotating the plot around):
IDL> s = surface(dist(20))
IDL> axes = s.axes
IDL> axes[2].hide = 1
IDL> zaxis = axis('z', location=[19, 19, 0])
Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
|
|
|