add_chart

Plotter.add_chart(chart, *charts)

Add a chart to this renderer.

Parameters
chartChart2D, ChartBox, ChartPie or ChartMPL

Chart to add to renderer.

*chartsChart2D, ChartBox, ChartPie or ChartMPL

Charts to add to renderer.

Examples

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