pydox.commodities.PydoxFigure#
- class PydoxFigure(fig: matplotlib.figure.Figure, name: str, category: str = None, config_uid: str = None, caller: Callable | str = None, pickle: pathlib.Path = None, legend: str = None)[source]#
- __init__(fig: Figure, name: str, category: str = None, config_uid: str = None, caller: Callable | str = None, pickle: Path = None, legend: str = None) None#
Methods
__init__(fig, name[, category, config_uid, ...])reload()Reload the pickle file with this figure object, and update the 'fig' attribute
show()Call
mpl.figure.Figure.show()on this instance figure object.Attributes
The function calling this instance
Category of the figure among
pydox.commodities.VALID_FIGURE_CATEGORIESThe configuration UID this figure is emanating from
A string providing a legend for this figure
This figure level based on its category attribute
pathlib.Pathto the pickle file wherematplotlib.figure.Figurewas saved bypydox.figures.commit()This instance uid, not to be confused with 'config_uid'
matplotlib.figure.FigureinstanceName of the figure