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

Home » Public Forums » archive » plotting different sized circles
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
plotting different sized circles [message #86110] Mon, 07 October 2013 08:12 Go to previous message
Krishnakumar M.A is currently offline  Krishnakumar M.A
Messages: 19
Registered: March 2013
Junior Member
Hi all,

I'm having a bit trouble here while using usersym. What I want to make is circles with the third column of the file (which means that the circles will have different radii). But, I have no idea if one can use the usersym like the way in which I have used. the code and the error message is given below. Please let me know the problem with the script.

Thanks.

data=fltarr(3,100)
readf,1,data
l=data(0,*)
b=data(1,*)
r=data(2,*)

for i=0,99 do begin
n=17.0
theta=findgen(n)/(n-1.0)*360.0
x(i)=l(i)+r(i)*sin(theta)/1.0
y(i)=b(i)+r(i)*cos(theta)/1.0
usersym,x(i),y(i)

plot,l(i),b(i),psym=8
endfor

The returned error was

% Compiled module: $MAIN$.
% USERSYM: Expression must be an array in this context: <FLOAT (
-1.99965)>.
% Execution halted at: $MAIN$ 16
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Taylor Diagrams in IDL
Next Topic: Voigt function fit using MPFIT

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

Current Time: Wed Oct 08 14:07:42 PDT 2025

Total time taken to generate the page: 0.00254 seconds