orix
orix copied to clipboard
Plotting parameter `direction` should allow an array-like of three numbers
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.
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.