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

Home » Public Forums » archive » help with cgDrawVectors
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
help with cgDrawVectors [message #91191] Mon, 15 June 2015 08:31 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Hi

I have an image 216x216. I wanted to overplot on that image the vectors.

Below it's my code

vector_size = fltarr(20,20)
dims_i_need = size(vector_size, /Dimensions)
posx = Rebin(Findgen(dims_i_need[0]), dims_i_need[0], dims_i_need[1])
posy = Rebin(Reform(Findgen(dims_i_need[1]), 1, dims_i_need[1]), dims_i_need[0], dims_i_need[1])

cgDisplay, 100,100
cgimage, image
cgDrawVectors, Vx, Vy, posx, posy, /ORDERED, overplot = 1

The problem is that the vectors are not plotted at the whole image but at a part of the image.
posx and posy are positions arrays. If the image is [216,216] and the vectors have dimensions [20,20] how we can plot this on top of the whole image?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: I am missing plot.pro
Next Topic: % error opening file

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

Current Time: Wed Oct 08 15:11:40 PDT 2025

Total time taken to generate the page: 0.00480 seconds