pyvista.Chart2D.title#

property Chart2D.title[source]#

Return or set the chart’s title.

Examples

Create a 2D chart with title ‘My Chart’.

>>> import pyvista as pv
>>> chart = pv.Chart2D()
>>> plot = chart.line([0, 1, 2], [2, 1, 3])
>>> chart.title = 'My Chart'
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/fc1b68efe02543d091146780b9bf1139fafb59e4/8fc77/_images/pyvista-chart2d-title-2_00_00.png