LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to do a vector plot

I would like to plot vectors in a map (like the quiver function in
Matlab), i.e. for plotting wind velocities in a 2D map. How can I do
this?
Thanks, Regards

0 Kudos
Message 1 of 2
(2,984 Views)
You could use either a graph control or a canvas control.

If you use a graph:

  • Display your background map using PlotBitmap()
  • For each vector:
    • Call PlotPoint() or PlotPolygon() to draw the arrow head
    • Call PlotLine to draw the arrow "shaft"

Equivalent functions are available for drawing on a canvas: CanvasDrawBitmap(), CanvasDrawPoint(), CanvasDrawLine() etc..

Regards,
Colin.

 

0 Kudos
Message 2 of 2
(2,953 Views)