orix icon indicating copy to clipboard operation
orix copied to clipboard

Plotting parameter `direction` should allow an array-like of three numbers

Open hakonanes opened this issue 3 years ago • 1 comments

Currently, many functions taking in a direction parameter, which defines a sample or crystal direction, requires a Vector3d when set. We should really allow a list, tuple or NumPy array or three numbers as well. An example is Orientation.scatter("ipf", direction=(0, 0, 1)), which is not possible, we have to pass a Vector3d to direction.

hakonanes avatar Jul 26 '22 11:07 hakonanes

This should be restricted to cases where direction signifies a sample direction, and not a crystal direction in which case we need a Miller instance.

hakonanes avatar Feb 01 '23 07:02 hakonanes