Skip to content

Different axis convention for kikuchipy and orix #616

Answered by hakonanes
htrellin asked this question in Q&A
Discussion options

You must be logged in to vote

It's the other way round, orix uses (n rows, n columns), which is in line with how NumPy represents a 2D array, while kikuchipy's signals extend HyperSpy's Signal2D class, which in all its representations use (n columns, n rows). This distinction is very important to be aware of! HyperSpy's rationale for this choice is explained in their documentation.

You can see the difference when comparing s_2.axes_manager.navigation_shape and s_2.data.shape.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@hakonanes
Comment options

@htrellin
Comment options

@hakonanes
Comment options

@hakonanes
Comment options

Answer selected by hakonanes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants