figure#
- property ChartMPL.figure#
Retrieve the matplotlib figure associated with this chart.
Examples
Create a matplotlib chart from an existing figure.
>>> import pyvista >>> import matplotlib.pyplot as plt >>> f, ax = plt.subplots() >>> _ = ax.plot([0, 1, 2], [2, 1, 3])
>>> chart = pyvista.ChartMPL(f) >>> chart.figure is f True >>> chart.show()