A method of vector3d.

solid arrows in space, from the origin, or from anchor, to the tips v; MATLAB’s vector3d/arrow3d

Syntax

arrow3d(v)

Arrows from the origin to v.

arrow3d(zvector, faceColor='r', label='z')

A red arrow named z.

arrow3d(v, anchor=vector3d(1, 0, 0), arrowWidth=0.05)

Arrows from another point, thinner.

arrow3d(Miller(1, 0, 0, cs, 'uvw'), labeled=True)

Every arrow named by its indices.

Description

The arrows go into the held axes in space or into a new figure, whose camera looks down on the screen plane of the plotting convention, and the axes widen to hold every arrow and label drawn so far, at equal scale. A new figure frames the arrows; held axes keep their framing. The coordinates are those of v, in its frame.

Input

v vector3d, the arrows, the tips when anchor is not given

Keywords

keyword default description
faceColor 'k' the colour of the arrows
anchor None vector3d or (n, 3) array, the tails of the arrows, one for all or one per arrow
arrowWidth None the radius of the tail relative to the length of the arrow, the head 2.5 times as wide; by default the radius follows the longest arrow, for arrows of equal thickness
edgeColor 'none' the colour of the edges of the faces, ‘none’ for none
labeled False name every arrow by its indices or coordinates
label None a text at the tip of every arrow, one for all or a list with one per arrow

Output

h the Poly3DCollection of the arrows’ faces

See also

scatter3d, quiver3d, text, VectorDefinition, RotationDefinition

MATLAB’s vector3d.arrow3d

source

Citing this page. This page is part of the documentation of MTEX, a free and open source MATLAB toolbox for analyzing and modeling crystallographic textures. It was written by The MTEX Developers and is published at https://mtex-toolbox.github.io/vector3d.arrow3d_py.html. If you use MTEX, or reuse text or figures from this page, in your research, please cite

F. Bachmann, R. Hielscher, H. Schaeben: Texture Analysis with MTEX - Free and Open Source Software Toolbox, Solid State Phenomena 160 (2010), 63-68. 10.4028/www.scientific.net/SSP.160.63

BibTeX
@article{bachmann2010mtex,
  author  = {F. Bachmann and R. Hielscher and H. Schaeben},
  title   = {Texture Analysis with MTEX - Free and Open Source Software Toolbox},
  journal = {Solid State Phenomena},
  volume  = {160},
  pages   = {63-68},
  year    = {2010},
  doi     = {10.4028/www.scientific.net/SSP.160.63},
  url     = {https://doi.org/10.4028/www.scientific.net/SSP.160.63}
}

Other papers describing specific MTEX methods are listed under Publications — please cite the one that best fits your application. The MTEX source code is licensed under the GNU General Public License v2.0; the text and figures of this documentation are licensed under CC BY 4.0, which permits reuse — including by automated systems — provided The MTEX Developers and this page are credited.