Skip to content

Map grains with rotation axis #573

Answered by kilir
hwhouse asked this question in Ask Anything
Discussion options

You must be logged in to vote

Hi,
assuming that your axes in specimen coordinates are of type vector3d and those in crystal coordinates are of type Miller you can use a colorcoding such as:

axes_in_specimen_coordinates = vector3d.rand(10) % some random data
cKS =HSVDirectionKey(specimenSymmetry('1'))
rgb = cKS.direction2color(axes_in_specimen_coordinates)

axes_in_specimen_coordinates = Miller.rand(10,crystalSymmetry('222')) % some random data
cKC = HSVDirectionKey(axes_in_specimen_coordinates.CS):
rgb = cKC.direction2color(axes_in_specimen_coordinates);

Have a look at the documentation, for example here: https://mtex-toolbox.github.io/EBSDGROD.html

Cheers,
Rüdiger

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ralfHielscher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants