# 6.15 2D Vector Graph

## Summary

A vector plot is a multidimensional graph used in industries such as meteorology, aviation, research, and construction that illustrate flow patterns (e.g. of wind, water, magnetic fields, etc.). Both direction and magnitude are represented in a vector graph. Origin includes two types of vector plots:

1. Vector XYAM - takes a starting XY location for the vector tail (by default), an angle and a magnitude.
2. Vector XYXY - takes two XY positions and connects them with a vector.

Minimum Origin Version Required: Origin 2015 SR0

## What you will learn

This tutorial will show you how to:

• Use Two data organizing mode to plot a vector graph.
• Use Plot Setup to assign plot data

## Steps

This tutorial is associated with <Origin EXE Folder>\Samples\Tutorial Data.opj.
Also, you can refer to these graphs in Learning Center. (Select Help: Learning Center menu or press F11 key , and then open Graph Sample: Specialized Graphs)

To create a vector plot, you need four data columns, and to organize your data into two modes:

### Vector XYAM

XYAM stands for X, Y, Angle and Magnitude. Vectors will start from point (X, Y), and rotate a specified angle. The following example uses XYAM data mode to create a vector graph.

1. Open Tutorial Data.opj and browse to the 2D Vector folder in Project Explorer (PE).
2. Activate the data worksheet Book8E. Without highlighting any columns, select Plot: Specialized: Vector XYAM from the main menu to open the Plot Setup dialog. Assign columns A, B, D, C to X, Y, A, M as shown below, then click OK to plot the graph.

 In order to show all three panels in Plot Setup dialog, please expand Plot Type panel by clicking and expand Available Data panel by clicking again. Please refer to Plotting using Plot Setup for more information.
3. Select Format:Plot... to pull up the plot level of the Plot Details dialog. In the Vector tab change the Magnitude Multiplier drop-down list to 75. Click the OK button to close Plot Details dialog.
4. Double-click the X or Y axis to open the Axis dialog. Go to the Line and Ticks tab, in the left panel, hold Ctrl key to select both Bottom and Left icons, check the Use Same Options for Bottom and Top check box. This will apply the settings in bottom X to top X, and those in left Y to right Y.
5. Go to the Tick Labels tab, hold Ctrl key to select both the Top and Right icons in the left panel, check Show check box. Click OK to apply the setting and close the Axis dialog.
6. Right click on the legend box to bring up the context menu. Select Properties... to open the Object Properties dialog. Type \l(1) Field Strength in the text box and click OK.
7. Add a layer title: Spot Write Effectiveness.

### Vector XYXY

Another data organizing mode is XYXY; where the first X, Y is the vector starting point, while the last X, Y is the ending point.

To create such a vector graph, activate workbook Book9E under the 2D Vector folder, highlight all of the four data columns in it, and select Plot: Specialized: Vector XYXY from the main menu. Delete the axis titles if necessary.