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

Home » Public Forums » archive » Is there a simple way to describe and plot a simple geometry
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Is there a simple way to describe and plot a simple geometry [message #63372] Fri, 07 November 2008 01:52 Go to previous message
OliverS is currently offline  OliverS
Messages: 1
Registered: November 2008
Junior Member
Hi everyone.

I have a problem with finding a adequate way of plotting results of my
simulations.

The model has a fixed geometry consisting of several identical
cylinders. I want to plot a cut showing the x-y plane, where I color
the circles in dependence of the results.

My first idea to resolve the problem was plotting circles defined with
USERSYM at the specified positions. But I am not happy with this
solution because it is very difficult to get the right proportions
between symbolsize and distance between the positions in the plot.

a short code sample of my first idea:

X = (INDGEN(196)/14)*0.63 + 0.63
Y = (INDGEN(196) MOD 14)*0.63 + 0.63
; Make a vector of 16 points, A[i] = 2pi/16:
A = FINDGEN(17) * (!PI*2/16.)
R = 3
; Define the symbol to be a unit circle with 16 points,
; and set the filled flag:
USERSYM, COS(A)*R, SIN(A)*R, /FILL
plot, x,y, LINESTYLE=3, PSYM=8, XRANGE=[0,10], YRANGE=[0,10]

I would be very glad vor any advice how to solve the problem in a
better way.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How to add several *.fit files (matrices) into one output *.fit file?
Next Topic: solving equation consisting of points - sort of...

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

Current Time: Wed Oct 08 15:52:05 PDT 2025

Total time taken to generate the page: 0.00449 seconds