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

Home » Public Forums » archive » Re: Setting ranges on surfaces
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Setting ranges on surfaces [message #12883 is a reply to message #12878] Wed, 16 September 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Richard D. Hunt (rdhunt@sandia.gov) writes:

> I am having problems with the surface command in that when
> I start setting ranges the surface extends past the axis region.
> Does anyone know how to fix this without having to resample
> the data?

I don't think it *can* be fixed without resampling the data.
I presume it has to do with the way the surface algorithm
works with hidden line removal that is the problem, but I
am only guessing.

In any case, resampling the data is not hard. I would do
it something like this:

data = Dist(30,30)
x = Indgen(30)
y = Indgen(30)
Surface, data[10:20, 5:25], x[10:20], y[5:25]

Cheers,

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: object reference in a structure
Next Topic: Re: array subscripts

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

Current Time: Sun Nov 30 05:52:40 PST 2025

Total time taken to generate the page: 0.16415 seconds