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()
../../../../_images/pyvista-Chart2D-title-2_00_00.png