ChartBox.plot#
Examples#
Download Python source code | Download Jupyter notebook
Create a box plot from a standard Gaussian dataset.
>>> import pyvista as pv
>>> import numpy as np
>>> rng = np.random.default_rng(
... 1
... ) # Seeded random number generator for data generation
>>> chart = pv.ChartBox([rng.normal(size=100)])
>>> chart.show()
Update the box plot (shift the standard Gaussian distribution).
>>> chart.plot.update([rng.normal(loc=2, size=100)])
>>> chart.show()
Used In#
Docstring Examples
BoxPlot.brush(1 use)BoxPlot.color(1 use)BoxPlot.color_scheme(1 use)BoxPlot.colors(1 use)BoxPlot.data(1 use)11 more
BoxPlot.label(1 use)BoxPlot.labels(1 use)BoxPlot.line_style(1 use)BoxPlot.line_width(1 use)BoxPlot.pen(1 use)BoxPlot.stats(1 use)BoxPlot.toggle(1 use)BoxPlot.update(1 use)BoxPlot.visible(1 use)ChartBox.legend(1 use)ChartBox.legend_visible(1 use)