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

Home » Public Forums » archive » Backlogged question: Drawing vector fields with same scaling in 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
Re: Backlogged question: Drawing vector fields with same scaling in New Graphics [message #92292 is a reply to message #92230] Wed, 11 November 2015 14:41 Go to previous messageGo to previous message
tianhuachengyue is currently offline  tianhuachengyue
Messages: 7
Registered: November 2015
Junior Member
Hi Chris,

I tried setting v2.length_scale = const*vmag2/vmag1 and now the plots are working perfectly. Thanks for the solution!

BTW, I also tried vmag = mean(sqrt(vx^2+vy^2)) but this didn't work correctly. Any trick behind using vmag = max(sqrt(vx^2+vy^2)) instead using mean(sqrt(vx^2+vy^2))? It seemed to me the vector plot setting is related to the maximum value of vector magnitude.

Cheers,
Huazeng
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: I want to plot the rainfall data on the image.
Next Topic: cgImage trim

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

Current Time: Wed Oct 08 15:13:27 PDT 2025

Total time taken to generate the page: 0.00357 seconds