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

Home » Public Forums » archive » Re: [Request] Plotting procedure for wind-rose
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: [Request] Plotting procedure for wind-rose [message #5318] Mon, 13 November 1995 00:00
chs11 is currently offline  chs11
Messages: 14
Registered: October 1995
Junior Member
In article <4855um$p7d@news.ust.hk>, Chris Yau <meyauc@uxmail.ust.hk> wrote:
> I would like to make a plot that does this:
> Many vectors (or simply lines) that originate from the origin. The direction
> and length of the vector represent the direction and magnitude of that data
> point, similiar to a wind-rose used by meteorologists.

The arrow procedure should do this easily. For instance, if your data
is complex (I assume this, because how else would you have magnitude and
direction?) you might try

IDL> data = cindgen(50)+complex(-25.0,2.0) ; make some data
IDL> plot, float(data), imaginary(data), /nodata ; set up axes
IDL> arrow, replicate(0,50),replicate(0,50), $
float(data), imaginary(data), /data ; draw arrows

Depending on the kind of data you have, you may find the plot_field
procedure useful as well.

Carl

||---------------------------------------------------------- -----------||
|| Carl H. Sayres || Author of 'The Unofficial Unauthorized ||
|| chs11@columbia.edu || Columbia University OS/2 Homepage' ||
|| csayres@teamos2.org || http://www.columbia.edu/~chs11/cuos2.html ||
||---------------------------------------------------------- -----------||
|| Access the Hobbes FTP site through the Hobbes Virtual Mirror ||
|| http://www.columbia.edu/~chs11/hvm.html ||
||______ Team OS/2 !!!! _______________________________________________||
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: pv-wave HISTOGRAM
Next Topic: Help with Sensitivizing my menu buttons

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

Current Time: Wed Oct 08 19:22:29 PDT 2025

Total time taken to generate the page: 0.00464 seconds