pyvista.Plotter.add_chart#

Plotter.add_chart(chart, *charts)[source]#

Add a chart to this renderer.

Parameters:
chartChart

Chart to add to renderer.

*chartsChart

Charts to add to renderer.

Examples

>>> import pyvista as pv
>>> chart = pv.Chart2D()
>>> _ = chart.plot(range(10), range(10))
>>> pl = pv.Plotter()
>>> pl.add_chart(chart)
>>> pl.show()
../../../_images/pyvista-Plotter-add_chart-1_01_00.png