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

Home » Public Forums » archive » Drawing vector fields with New Graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Drawing vector fields with New Graphics [message #85074] Mon, 01 July 2013 14:34 Go to previous message
Gordon Farquharson is currently offline  Gordon Farquharson
Messages: 48
Registered: December 2010
Member
Is there a way to plot (using New Graphics) two different vector fields on the same set of axes such that the vector fields have the same scaling?

Below is a minimal working program. What I want (and sort of expect) is that the v2 vectors be proportionally scaled with respect to the v1 vectors. What I get is that the v2 vectors appear larger than the v1 vectors, even though they are clearly smaller.

PRO test_vector

x = [0.,1.,2.]
y = [0.,0.,0.]
vx = [1.,1.,1.]
vy = [1.,1.,1.]

v1 = vector(vx, vy, x, y, $
XTITLE='X', YTITLE='Y', $
XRANGE=[0.,4.], YRANGE=[0.,4.])

v1.arrow_thick = 2
v1.length_scale = 2

stop

x = [1.,2.]
y = [1.,1.]
vx = [-0.5,-0.5]
vy = [-0.5,-0.5]

v2 = vector(vx, vy, x, y, $
/OVERPLOT)

v2.arrow_thick = 2
v2.length_scale = 2

END

Gordon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: peak analysis
Next Topic: IDLWAVE

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

Current Time: Wed Oct 08 19:02:31 PDT 2025

Total time taken to generate the page: 0.00240 seconds