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

Home » Public Forums » archive » Polar plots using MAP routines
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: Polar plots [message #6849 is a reply to message #6524] Mon, 26 August 1996 00:00 Go to previous message
David Theil is currently offline  David Theil
Messages: 11
Registered: May 1996
Junior Member
Jarrod Andrew Chapman wrote:
>
> Does anybody have code written to plot polar data (i.e. to fill sectors of radius
> r to r + dr and angle theta to theta + dtheta) using IDL? I can't seem to find
> anything like this built into the language. I've tried using the MAP_SET routines
> with some success, but it seems like there should be a better way to do this.
> Any suggestions?

try, for instance, something like this:

theta=findgen(51)*!pi/50
r=cos(theta)
dr=r/10
plot,r+dr,theta,/polar
oplot,r,theta,/polar
polyfill,[r*cos(theta),(r+dr)*cos(theta)],[r*sin(theta),(r+d r)*sin(theta)]

Of course, it would be nice if the polyfill procedure had the 'polar'
keyword.
(Hint, hint, RSI!)
----------
David Theil

home work
University of Colorado
3360 34th St. D campus box 389
Boulder, Colorado Boulder, Colorado
80301 80309
(303)449-3113 (303)492-0895



No guts, no glory.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 4.01 IN WIN-NT PROBLEM
Next Topic: Re: Lectureship at Warwick

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

Current Time: Fri Oct 10 15:11:05 PDT 2025

Total time taken to generate the page: 1.27909 seconds