StereographicPlot#

class orix.plot.StereographicPlot(*args, hemisphere: str = 'upper', azimuth_resolution: Union[int, float] = 10, polar_resolution: Union[int, float] = 10, **kwargs)[source]#

Bases: Axes

Stereographic plot for plotting Vector3d.

Parameters:
*args

Arguments passed to matplotlib.axes.Axes.

hemisphere

Which hemisphere to plot vectors in, either "upper" (default) or "lower".

azimuth_resolution

Resolution of azimuth grid lines in degrees. Default is 10 degrees.

polar_resolution

Resolution of polar grid lines in degrees. Default is 10 degrees.

**kwargs

Keyword arguments passed to matplotlib.axes.Axes.

Attributes

StereographicPlot.hemisphere

Return or set the hemisphere to plot, either "upper" or "lower".

StereographicPlot.name

StereographicPlot.pole

Return the projection pole, either -1 or 1, where -1 (1) means the projection point of the stereographic transform is the lower (upper) pole [00-1] ([001]), i.e. only vectors with z > 0 (z < 0) are plotted.

Methods

StereographicPlot.clear()

Clear the Axes.

StereographicPlot.draw_circle(*args[, ...])

Draw great or small circles with a given opening_angle to one or multiple vectors.

StereographicPlot.format_coord(x, y)

Return a format string formatting the x, y coordinates.

StereographicPlot.plot(*args, **kwargs)

Draw straight lines between vectors.

StereographicPlot.pole_density_function(*args)

Compute the Pole Density Function (PDF) of vectors in the stereographic projection.

StereographicPlot.restrict_to_sector(sector)

Restrict the stereographic axis to a FundamentalSector, typically obtained from fundamental_sector.

StereographicPlot.scatter(*args, **kwargs)

A scatter plot of vectors.

StereographicPlot.set(*[, adjustable, ...])

Set multiple properties at once.

StereographicPlot.set_labels([xlabel, ...])

Set the reference frame's axes labels.

StereographicPlot.show_hemisphere_label(**kwargs)

Add a hemisphere label ("upper"/"lower") to the upper left of the plot.

StereographicPlot.stereographic_grid([...])

Turn a stereographic grid on or off, and set the azimuth and polar grid resolution in degrees.

StereographicPlot.symmetry_marker(v, fold, ...)

Plot 2-, 3- 4- or 6-fold symmetry marker(s).

StereographicPlot.text(*args, **kwargs)

Add text to the axes.

Examples using StereographicPlot#