Plottable#

class optika.mixins.Plottable[source]#

Bases: ABC

An object that can be plotted.

Attributes

kwargs_plot

Extra keyword arguments that will be used in the call to named_arrays.plt.plot() within the plot() method.

Methods

__init__()

plot([ax, transformation, components])

Plot the selected components onto the given axes.

Inheritance Diagram

Inheritance diagram of optika.mixins.Plottable
abstractmethod plot(ax=None, transformation=None, components=None, **kwargs)[source]#

Plot the selected components onto the given axes.

Parameters:
Return type:

AbstractScalar | dict[str, AbstractScalar]

abstract property kwargs_plot: None | dict#

Extra keyword arguments that will be used in the call to named_arrays.plt.plot() within the plot() method.