the reference frame indicator MTEX draws in the scale bar box, with the text height t as its unit: an arrow per axis that has a direction on screen, shortened by its tilt out of the plane, a circle for an axis leaving the plane with its label inside, crossed by four spokes when it points away from the viewer, and a label beside every arrow. Returns the arrows as polygons, the symbol as a polyline with NaN breaks, the labels with their positions, and the bounding box (umin, umax, vmin, vmax)
Syntax
arrows, symbol, texts, bbox = triadGeometry(frameOnScreen(pl), ['x', 'y', 'z'])
In text heights.
arrows, symbol, texts, bbox = triadGeometry(screen, labels, t=2.0)
Twice as large.
Input
screen |
the (right, up, out) triples of the axes, frameOnScreen |
labels |
the label of every axis |
Keywords
| keyword | default | description |
|---|---|---|
t |
1.0 |
the height of the text, the unit of the drawing |
Output
arrows |
a list of polygons of shape (7, 2) |
symbol |
array of shape (m, 2), the circle and its spokes, NaN rows between pieces |
texts |
a list of (position, label) |
bbox |
(umin, umax, vmin, vmax) |
See also
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/triadGeometry_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.