plot#

property ChartBox.plot#

Return the BoxPlot instance associated with this chart.

Examples

Create a box plot from a standard Gaussian dataset.

>>> import pyvista
>>> import numpy as np
>>> rng = np.random.default_rng(1)  # Seeded random number generator for data generation
>>> chart = pyvista.ChartBox([rng.normal(size=100)])
>>> chart.show()
../../../../_images/pyvista-ChartBox-plot-1_00_00.png

Update the box plot (shift the standard Gaussian distribution).

>>> chart.plot.update([rng.normal(loc=2, size=100)])
>>> chart.show()
../../../../_images/pyvista-ChartBox-plot-1_01_00.png