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

Home » Public Forums » archive » Re: Filled area curve
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: Filled area curve [message #85671 is a reply to message #85670] Mon, 26 August 2013 05:54 Go to previous messageGo to previous message
Rob.Dimeo is currently offline  Rob.Dimeo
Messages: 21
Registered: September 2007
Junior Member
Many thanks. That's nice, simple, and does the trick.
-Rob

On Monday, August 26, 2013 8:42:36 AM UTC-4, Yngvar Larsen wrote:

> Something like this could be a starting point for you:
>
>
>
> x = dindgen(360)/359
>
> phase = x^2*4*!dpi
>
> mag = abs(sin(2*!dpi*x))
>
> z = mag*exp(complex(0,1)*phase)
>
>
>
> col=bytscl(atan(z, /phase))
>
>
>
> device, get_decomposed=decomp_flag
>
>
>
> device, decomposed=1
>
> plot, x, mag, /nodata
>
> loadct, 33
>
> device, decomposed=0
>
> for ii=0, n_elements(x)-2 do polyfill, x[[ii, ii+1, ii+1, ii]], [0,0,mag[ii+1], mag[ii]], color=col[ii]
>
> device, decomposed=1
>
> oplot, x, mag, thick=2
>
>
>
> device, decomposed=decomp_flag
>
>
>
> --
>
> Yngvar
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: generating sequences
Next Topic: Question about CURVEFIT function

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

Current Time: Sun Oct 12 07:30:23 PDT 2025

Total time taken to generate the page: 2.32159 seconds