# Examples from pyvista.plotting.charts.BoxPlot
# =============================================

# Create boxplots for datasets sampled from shifted normal distributions.
import pyvista as pv
import numpy as np
rng = np.random.default_rng(
    1
)  # Seeded random number generator used for data generation
normal_data = [rng.normal(i, size=50) for i in range(5)]
chart = pv.ChartBox(
    normal_data, labels=[f'x ~ N({i},1)' for i in range(5)]
)
chart.show()

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

