VectorPlot2D

VectorPlot2D ( appearanceConst )

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

The VectorPlot2D() function serves to draw two-dimensional vector plots. The 1st data series in the ChartData() function defines the x-values, the 2nd data series the y-values, the 3rd data series the vector lengths and the 4th data series the vector directions of the first series, the 5th, 6th, 7th and 8th data series in ChartData() the x-values, y-values, lengths and directions of the 2nd series, and so on. As for one-dimensional vector charts, symbols (appearance = symbol), shadow (appearance = shadow) and labels (appearance = label) can be added to the vectors by using the argument appearance. The options can be combined by using a plus sign "+". Rotating (appearance = horizontal) is not supported for two-dimensional plots as this is simply possible by switching the data series in ChartData() .

VECTOR_PLOT_2D_01
1

OpenDrawing(80;​80)

2

OpenChart(0;​0;​80;​80;​on)

3

ChartDataOptions(xyxy)

4

ChartData(10 50 1.0 10;​

5

10 50 1.2 45;​

6

10 50 1.0 127;​

7

10 50 1.5 170;​

8

10 50 1.0 -110;​

9

10 50 1.5 -32)

10

VectorPlot2D(shadow)

11

VectorPlotOptions(4;​35%;​10) /* After VectorPlot2D() */

12

/* Set up styles. */

13

LineStyle(1;​;​1;​200 0 0;​shaded)

14

ShadowStyle(1;​0 0 2)

15

/* Set up axes. */

16

AxisOptions(all;​none)

17

/* Set up grid. */

18

GridLocation(all;​none)

19

CloseChart()

20

CloseDrawing()

VECTOR_PLOT_2D_01
VECTOR_PLOT_2D_02
1

OpenDrawing(300;​300)

2

ChartData(-5 -5 -5 -5 -5 -5 -5 -5 -5 -5 -5 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -4 -3 -3 -3 -3 -3 -3 -3 -3 -3 -3 -3 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 ;​

3

-5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5 ;​

4

7.1 6.4 5.8 5.4 5.1 5 5.1 5.4 5.8 6.4 7.1 6.4 5.7 5 4.5 4.1 4 4.1 4.5 5 5.7 6.4 5.8 5 4.2 3.6 3.2 3 3.2 3.6 4.2 5 5.8 5.4 4.5 3.6 2.8 2.2 2 2.2 2.8 3.6 4.5 5.4 5.1 4.1 3.2 2.2 1.4 1 1.4 2.2 3.2 4.1 5.1 5 4 3 2 1 0 1 2 3 4 5 5.1 4.1 3.2 2.2 1.4 1 1.4 2.2 3.2 4.1 5.1 5.4 4.5 3.6 2.8 2.2 2 2.2 2.8 3.6 4.5 5.4 5.8 5 4.2 3.6 3.2 3 3.2 3.6 4.2 5 5.8 6.4 5.7 5 4.5 4.1 4 4.1 4.5 5 5.7 6.4 7.1 6.4 5.8 5.4 5.1 5 5.1 5.4 5.8 6.4 7.1 ;​

5

-135 -129 -121 -112 -101 -90 -79 -68 -59 -51 -45 -141 -135 -127 -117 -104 -90 -76 -63 -53 -45 -39 -149 -143 -135 -124 -108 -90 -72 -56 -45 -37 -31 -158 -153 -146 -135 -117 -90 -63 -45 -34 -27 -22 -169 -166 -162 -153 -135 -90 -45 -27 -18 -14 -11 180 180 180 180 180 0 0 0 0 0 0 169 166 162 153 135 90 45 27 18 14 11 158 153 146 135 117 90 63 45 34 27 22 149 143 135 124 108 90 72 56 45 37 31 141 135 127 117 104 90 76 63 53 45 39 135 129 121 112 101 90 79 68 59 51 45)

6

VectorPlot2D()

7

VectorPlotOptions(4 0;​;​35%;​0.5) /* After VectorPlot2D() */

8

/* Set up styles. */

9

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

10

/* Set up axes. */

11

AxisLine(all;​0)

12

AxisMajorTicks(all;​10;​0.25;​40 40 40;​;​out)

13

/* Set up grid. */

14

MajorGridLineWidths(all;​all;​0)

15

GridFrame(all;​0.25)

16

CloseDrawing()

VECTOR_PLOT_2D_02
Scroll to Top