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 #92293 is a reply to message #92292] Thu, 12 November 2015 08:29 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Wednesday, November 11, 2015 at 3:41:43 PM UTC-7, tianhuachengyue wrote:
> 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

Hi Huazeng,
Yes, you are correct - it is using the maximum magnitude. Using the mean would be a bad idea, as your maximum vectors might be huge but still have a reasonable mean. You can actually see a lot of this code yourself, in idlitvisvector__define.pro.
Cheers,
Chris
[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 20:13:54 PDT 2025

Total time taken to generate the page: 0.00435 seconds