pyvista.plotting.charts.BoxPlot.data#

property BoxPlot.data[source]#

Retrieve the datasets of which the boxplots are drawn.

Examples

Create a box plot and display the datasets.

>>> import pyvista as pv
>>> chart = pv.ChartBox([[0, 1, 1, 2, 3, 3, 4]])
>>> chart.plot.data
(pyvista_ndarray([0, 1, 1, 2, 3, 3, 4]),)
>>> chart.show()
../../../../_images/pyvista-plotting-charts-BoxPlot-data-2_00_00.png