-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmenting of the stereographic projection #213
Segmenting of the stereographic projection #213
Conversation
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
This PR is getting there, although there's lots of work left. I'm pretty sure I'll close this PR and make a new one from a new branch, since there is lots of trial and error here. The framework in this PR only focuses on internal use, and little new public API will be added. We're able to restrict the stereographic axes (xaxis - azimuth, yaxis - polar) using a >>> import matplotlib.pyplot as plt
>>> from orix import plot, quaternion
>>> pg = quaternion.symmetry.Td
>>> fig, ax = plt.subplots(subplot_kw=dict(projections="stereographic"))
>>> ax.grid()
>>> pg.fundamental_sector.vertices
Vector3d (3,)
[[ 0.5774 0.5774 0.5774]
[ 0. 0. 1. ]
[ 0.5774 -0.5774 0.5774]]
>>> ax._restrict_to_fundamental_sector(pg.fundamental_sector) |
Just for documentation purposes, I'm fairly sure that the sampling you've brought over from diffsims is of S2, not SO(2) |
Yup, will change. Thanks. |
To not use up CI resources, I'll close this, but open a new PR once ready. |
Signed-off-by: Håkon Wiik Ånes hwaanes@gmail.com
Description of the change
This PR aims to allow drawing segment boarders in the stereographic projection, which will mostly be used for triangles.
I set up this PR so that others can contribute with comments on the API etc. It is still highly a work in progress.
See discussion in #169 and #166.
Progress of the PR
Symmetry.fundamental_sector()
, since I'd like to call the new propertySymmetry.fundamental_sector
, as per discussions in Project Miller indices (directions or plane normals) into a fundamental sector defined by a point group symmetry #169.- [ ] AddWill be added in a later PR. Only added toVector3d.plot()
to draw lines between points (like the triangle). This is different fromscatter()
anddraw_circle()
.StereographicPlot.plot()
here.orix.sampling.S2_sampling.uniform_S2_sample()
function. Necessary to get center vector for some point groups' fundamental sectors.Minimal example of the bug fix or new feature
Plotting the fundamental sector of point group m-3m in the stereographic projection
produces this plot in stereographic projection (equal angle)
From MTEX in equal area projection
For reviewers
__init__.py
.unreleased section in
CHANGELOG.rst
.