# 6.12.2 3D Vector

## Summary

Origin can plot 3D Vectors from two different data structures: XYZ XYZ and XYZ dXdYdZ.

XYZ dXdYdZ defines the tail and head data for the vector, while XYZ dXdYdZ provides the vector's tail data and the distance between tail and head projections on X, Y, and Z axes.

## What you will learn

• Create a 3D Vector from XYZ dXdYdZ worksheet data.
• Customize the 3D Vector

## Steps

This tutorial is associated with <Origin EXE Folder>\Samples\Tutorial Data.opj.
Also, you can refer to this graph in Origin Central. (Select Help: Origin Central menu or press F11 key , and then open Graph Sample: 3D Symbol Bar and Wall)

1. Open Tutorial Data.opj and browse to the 3D Vector folder in Project Explorer (PE).
2. Select workbook Book2. Click in the upper left corner of the worksheet to select all data.
3. On the main menu, select Plot, then point to 3D Symbol/Bar/Vector, and then click 3D Vector XYZ dXdYdZ. This will create a 3D Vector graph with our built-in template.
4. Double-click on the vector plot to open the Plot Details dialog box. Ensure that the Original vector plot has been selected in the left panel of the dialog box. Select the 3D Vector tab.
• In the 3D Vector tab of Plot Details dialog box, set the parameters as shown in the following graph. Click the Color button and select Dark Green from the menu.
Click OK to apply these settings and close the dialog box.
5. Go to Lighting tab in Format: Layer Properties dialog, Set the lighting attribute follows graph below:
6. Rotate the graph to a proper perspective. The final graph should look something like this: