data#

property BoxPlot.data#

Retrieve the datasets of which the boxplots are drawn.

Examples

Create a box plot and display the datasets.

>>> import pyvista
>>> chart = pyvista.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-1_00_00.png