register_projections#
- orix.plot.register_projections() None[source]#
Register custom Matplotlib projections.
This must be called when using one of our custom projections in Matplotlib.
See also
Examples
>>> import matplotlib.pyplot as plt >>> from orix.plot import register_projections >>> fig = plt.figure()
May fail
>>> ax = fig.add_subplot(projection="stereographic")
Works
>>> register_projections() >>> ax = fig.add_subplot(projection="stereographic")