# Examples from pyvista.ChartBox.legend_visible
# =============================================

# Create a boxplot chart with custom labels.
import pyvista as pv
chart = pv.ChartBox([[0, 1, 1, 2, 3, 3, 4]])
chart.plot.label = "Data label"
chart.show()

# Hide the legend.
chart.legend_visible = False
chart.show()

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

