Re: [Request] Plotting procedure for wind-rose [message #5318] |
Mon, 13 November 1995 00:00 |
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 !!!! _______________________________________________||
|
|
|