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

Home » Public Forums » archive » Re: PARTVELVEC procedure not overplotti​ng despite setting OVER keyword;Trouble with OPLOT
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: PARTVELVEC procedure not overplotti​ng despite setting OVER keyword;Trouble with OPLOT [message #77083] Fri, 29 July 2011 07:18
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
partvelvec definitely expects data coordinates. For example:

; define data coordinates for arrows
xarrow = rebin(0.5 + findgen(10), 10, 10, /sample)
yarrow = rebin(0.5 + findgen(1,10), 10, 10, /sample)
; define vectors
grad_intensity_x = randomn(seed, 10, 10)
grad_intensity_y = randomn(seed, 10, 10)

; draw a background image with axes
cgimage, dist(10), /scale, /axes
; put on the vector field
partvelvec, grad_intensity_x, grad_intensity_y, xarrow, yarrow, /over

-Jeremy.
[Message index]
 
Read Message
Previous Topic: Re: Unable to get error\exception from IDL wrapper
Next Topic: Re: Polar binning and display of data

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

Current Time: Sat Oct 11 05:37:24 PDT 2025

Total time taken to generate the page: 0.80394 seconds