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

Home » Public Forums » archive » IDL Pricing
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: IDL Pricing [message #27558 is a reply to message #27480] Fri, 26 October 2001 11:06 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Guillaume Dargaud wrote:
[stuff deleted]
> Anyway, the other thing I don't like in IDL are graphics. Try to do a
> surface plots in less than... 40 lines. In most graphic packages it takes
> one line !

Here's an example from "Practical IDL Programming" (p. 271). For
demonstration purposes, let's create a 2D sinc function defined over the
range -10 to 10 in x and y:

v = findgen(41) * 0.5 - 10.0
x = rebin(v, 41, 41, /sample)
y = rebin(reform(v, 1, 41), 41, 41, /sample)
r = sqrt(x^2 + y^2) + 1.0e-6
z = sin(r) / r

To plot the data as a mesh surface:

surface, z, x, y

To plot the data as a shaded surface:

shade_surf, z, x, y

Therefore IDL is perfectly capable of plotting a surface in one line.

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Convol with Kernel Dependency Of the Radius to the Middle
Next Topic: LINK : warning LNK4068: /MACHINE not specified; defaulting to IX86

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

Current Time: Sat Oct 11 05:27:10 PDT 2025

Total time taken to generate the page: 0.16187 seconds