title

property ChartMPL.title

Return or set the chart’s title.

Examples

Create a matplotlib chart with title ‘My Chart’.

>>> import pyvista
>>> import matplotlib.pyplot as plt
>>> f, ax = plt.subplots()
>>> _ = ax.plot([0, 1, 2], [2, 1, 3])
>>> chart = pyvista.ChartMPL(f)
>>> chart.title = 'My Chart'
>>> chart.show()
../../../../_images/pyvista-ChartMPL-title-1_01_00.png