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

Home » Public Forums » archive » Re: shading/outlining on surface plot
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: shading/outlining on surface plot [message #82775 is a reply to message #82771] Thu, 17 January 2013 10:09 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Bob Plano writes:

> Sorry if this is a dumb question, but....
>
> I'd like to make a surface or shade_surf plot, and outline areas on
> the surface. The basic idea is here:
>
>
>
> make_2d_gaussian,arr,xx,yy ;xx and yy are 2D
> grid point arrays
>
> shade_surf, arr,xx,yy,shades=whatever
>
> keep=where( arr gt .5*max(arr) and arr lt .7*max(arr) )
>
> sub_outline_procedure,arr(keep),xx(keep),yy(keep) ???????????????????
>
>
>
> Is there a relatively easy way to do this?

No, there are no easy ways to do this, I don't believe, although maybe
this is a case where function graphics can come to the rescue. One
problem is writing on the surface. It is very difficult to know,
unfortunately, where the actual surface *is*, due to round-off errors,
mostly.

You might try drawing a contour line on top of an image, then using that
to drape over the surface, but I don't expect good results. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Destroying objects
Next Topic: CgWindow and multiple plots

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

Current Time: Fri Oct 10 13:44:57 PDT 2025

Total time taken to generate the page: 0.56047 seconds