plot_spherical#
- EBSDMasterPattern.plot_spherical(energy: Union[int, float, None] = None, return_figure: bool = False, style: str = 'surface', plotter_kwargs: Union[dict] = None, show_kwargs: Union[dict] = None) pyvista.Plotter[source]#
Plot the master pattern sphere.
This requires the master pattern to be in the stereographic projection and both hemispheres to be present.
- Parameters:
- energy
Acceleration voltage in kV used to simulate the master pattern to plot. If not given, the highest energy is used.
- return_figure
Whether to return the
pyvista.Plotterinstance for further modification and then plotting. Default isFalse. IfTrue, the figure is not plotted.- style
Visualization style of the mesh, either
"surface"(default),"wireframe"or"points". In general,"surface"is recommended when zoomed out, while"points"is recommended when zoomed in. Seepyvista.Plotter.add_mesh()for details.- plotter_kwargs
Dictionary of keyword arguments passed to
pyvista.Plotter.- show_kwargs
Dictionary of keyword arguments passed to
pyvista.Plotter.show()ifreturn_figure=False.
- Returns:
plOnly returned if
return_figure=True.
Notes
Requires
pyvista(see the installation guide).Examples
>>> import kikuchipy as kp >>> mp = kp.data.nickel_ebsd_master_pattern_small(projection="stereographic") >>> mp.plot_spherical()