VectorPlot

VectorPlot ( appearanceConst ;​ doShiftIntervals )

Argument Type Range Default Note
appearanceConst int 0..127 default
doShiftIntervals int 0..1 off
Description

The VectorPlot() function serves to draw one-dimensional vector plots. The 1st data series in the ChartData() function defines the positions, the 2nd data series the vector lengths and the 3rd data series the vector directions of the 1st series, the 4th, 5th and 6th data series in ChartData() the positions, lengths and directions of the 2nd series, and so on. Direction angles are to be entered within a range of ±360 degrees, positive angles run clockwise. 0 degrees is horizontal (3 o'clock). The 1st argument appearance makes it possible to rotate the plot 90 degrees (appearance = horizontal) and to add symbols (appearance = symbol), shadow (appearance = shadow) and labels (appearance = label) to the vectors. All options can be combined by using a plus sign "+". For one-dimensional vector plots it is possible to move all vectors half an interval width so that they do not lie on the interval borders but rather in the middle of the intervals. This can be done by activating the 2nd argument doShiftIntervals = on.

VECTOR_PLOT_01
1

OpenDrawing(450;​22)

2

OpenChart(0;​6;​150;​11;​on)

3

ChartData(1;​1;​0)

4

VectorPlot(symbol)

5

VectorPlotOptions(;​50%) /* Anchor: arrow tail (default) */

6

LineStyle(1;​;​0.5;​90 120 90)

7

SymbolStyle(1;​bullet;​8;​1;​90 120 90)

8

AxisOptions(all;​none)

9

GridLocation(all;​none)

10

CloseChart()

11

OpenChart(130;​6;​220;​11;​on)

12

ChartData(1;​1;​0)

13

VectorPlot(symbol)

14

VectorPlotOptions(3 3;​40%;​;​0.5) /* Anchor: mid of arrow */

15

LineStyle(1;​;​1;​150 120 90)

16

SymbolStyle(1;​cross;​10;​1;​150 120 90)

17

AxisOptions(all;​none)

18

GridLocation(all;​none)

19

CloseChart()

20

OpenChart(300;​6;​200;​11;​on)

21

ChartData(1;​1;​0)

22

VectorPlot(symbol)

23

VectorPlotOptions(;​40%;​;​1.0) /* Anchor: arrowhead */

24

LineStyle(1;​;​2;​86 111 145)

25

SymbolStyle(1;​vBar;​10;​1;​86 111 145)

26

AxisOptions(all;​none)

27

GridLocation(all;​none)

28

CloseChart()

29

CloseDrawing()

VECTOR_PLOT_01
Scroll to Top