ChartMPL.figure#
Examples#
Download Python source code | Download Jupyter notebook
Create a matplotlib chart from an existing figure.
>>> import pyvista as pv
>>> import matplotlib.pyplot as plt
>>> f, ax = plt.subplots()
>>> _ = ax.plot([0, 1, 2], [2, 1, 3])
>>> chart = pv.ChartMPL(f)
>>> chart.figure is f
True
>>> chart.show()
Used In#
Docstring Examples
ChartMPL.active_background_color(1 use)ChartMPL.active_border_color(1 use)ChartMPL.background_color(1 use)ChartMPL.background_texture(1 use)ChartMPL.border_color(1 use)7 more
ChartMPL.border_style(1 use)ChartMPL.border_width(1 use)ChartMPL.loc(1 use)ChartMPL.show(1 use)ChartMPL.size(1 use)ChartMPL.toggle(1 use)ChartMPL.visible(1 use)