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

Home » Public Forums » archive » problem with vector plots
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
problem with vector plots [message #57341] Fri, 07 December 2007 01:10
rkombiyil is currently offline  rkombiyil
Messages: 59
Registered: March 2006
Member
Greetings all!
I am trying to plot vectors using one_arrow. For example, If the
aspect ratio is 1 (!x.crange=!y.crange), then I can see nice sexy
looking vectors.. In data coordinates, the arrowsize is scaled by(!
x.crange[1]-!x.crange[0])/512 in the original program. When the aspect
ratio changes (for example),

IDL> print,!x.crange
28797.000 84597.000
IDL> print,!y.crange
0.0000000 80.000000

then the "angle information" is lost (meaning, they appear as small
straight lines and "not" drawn based on the angle and neither can I
see the arrow head). This happens when I scale the arrowsize by large
number to make it fit within the plot window. To give an example of
what I am trying to do:
;-------- code snippet ------------------
;ori_scale is (!x.crange[1]-!x.crange[0])/512
inv_scale=1./ori_scale
for i=!x.crange[0],!x.crange[1],3600L do one_arrow,i,
40.,a[i],'',arrowsize=[30.,9.,35.]*inv_scale,/data
;-----------------------------------------------
a[i] has the angle info and I tried to cheat by setting !x.crange=!
y.crange and also tried different scalings (as a function of ratio
between !x.crange and !y.crange), but no luck :(
I am short on time.. any help/suggestions greatly appreciated!
Thank you in advance for your time and help.
/rk
[Message index]
 
Read Message
Previous Topic: Problem with ENVIZOOM
Next Topic: Re: IDL 7.0 Projects

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

Current Time: Thu Oct 09 20:36:27 PDT 2025

Total time taken to generate the page: 0.08576 seconds