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

Home » Public Forums » archive » Re: slightly shifted plots (?)
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: slightly shifted plots (?) [message #36993 is a reply to message #36992] Fri, 07 November 2003 19:10 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.1a1561bcc6e365ca989735@news.frii.com...
> Antonio writes:
>
>> I was wondering whether there would be any routine that enable to
>> slightly shift two almost identical functions so that they do not
>> overlap in the same plot.
>
> How about something like this:
>
> y = Smooth( Randomu(-5L, 101), 10, /Edge_Truncate)
> x = Indgen(10
> Plot, x, y
> OPlot, x+1, y
>
> Cheers,
>
> David
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Phone: 970-221-0438, E-mail: david@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155


Perhaps a shift in the y direction would be appropriate. :)

y1 = Smooth( Randomu(-5L, 101), 10, /Edge_Truncate)
y2 = y1 + Smooth( Randomu(-5L, 101), 10, /Edge_Truncate)/4
x = Indgen(10)
Plot, x, y1,yr=[min(y1) < min(y2),max(y1) > max(y2)]
OPlot, x, y2

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to write in HDF-EOS format?
Next Topic: Re: Is it possible to change the title of a WIDGET_SLIDER?

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

Current Time: Wed Oct 08 17:53:34 PDT 2025

Total time taken to generate the page: 0.00420 seconds