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

Home » Public Forums » archive » Plotting functions in IDL
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: Plotting functions in IDL [message #5635 is a reply to message #5513] Thu, 18 January 1996 00:00 Go to previous messageGo to previous message
hahn is currently offline  hahn
Messages: 108
Registered: November 1993
Senior Member
kunstman@pu.informatik.th-darmstadt.de (Thomas Kunstmann) wrote:

> What is the best way of plotting a function in IDL? As far as I know,
> it only handles vectors of discrete data and no equations.

Yes, IDL need the data in tables, either in core or on disk.
Actuall, I'm glad that this avoids error, because you have to
think of how to fill the table. I.e. try the following with
mathematica:

Plot[Sin[x*x],{x,-3Pi,3Pi}]

you won't believe your eyes!

What mathematica does - and many other packages do - is to divide the
given intervall into equal pieces and call the function at the pivots.
But due to the periodicy and due to rounding errors the function
are neither symmectrical to the y axis nor are the extremes always
found. Thus in this case you have a dip in the amplitude at x=7.1.
The minimum y value is -0.3 rather than -1.

So you either think of how to fill the table that IDL should plot or
use some other graphics package and believe the results!

Norbert Hahn
TH Darmstadt
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL and color table allocation
Next Topic: Need Help Rendering Picture of Earth with Satellites

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

Current Time: Thu Oct 09 23:50:51 PDT 2025

Total time taken to generate the page: 0.80148 seconds