A method of grain3Boundary.

arrows at the centroids of 3D grains or of their boundary faces; MATLAB’s grain3Boundary.quiver and grain3d.quiver

Syntax

quiver(gB, gB.N, color='r')

The face normals in red.

quiver(gB, gB.N, antipodal=True, autoScaleFactor=2)

Axes, twice as long.

quiver(grains, grains.meanOrientation * Miller(0, 0, 1, cs))

A crystal direction per grain.

Description

A grain’s arrow is as long as its direction, a face’s a fifth of the face’s diameter, both times autoScaleFactor. Antipodal directions, axes, are drawn as lines through the centroid without heads. The plot is a scene3d held by the mtexFigure, shown as the picture PyVista renders offscreen (matplotlib’s 3D axes without PyVista), so hold, setCamera and mtexColorbar act on it as on any MTEX figure; show3d opens it in a window and exportHTML writes it as an interactive page.

Input

x grain3d or grain3Boundary
d vector3d, one direction per grain or face

Keywords

keyword default description
color (0.0, 0.0, 1.0) the RGB colour of the arrows, one for all or one per arrow
autoScaleFactor 1.0 the factor of the arrow lengths
scaling True scale the arrows as above; False gives every arrow a quarter of its direction’s length
lineWidth 1.0 the width of the shafts
antipodal None draw axes, lines without heads; by default d.antipodal
how2plot None the plottingConvention of the view, by default plottingConvention.default3D
figSize None the size of a new figure, ‘small’, ‘normal’, ‘large’, …, or (width, height) in inches

Output

fig mtexFigure

See also

grain3Boundary.plot, grain3d.plot, quiver3d

MATLAB’s grain3Boundary.quiver

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/grain3Boundary.quiver_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.