pyvista.plotting.charts.BoxPlot.label#

property BoxPlot.label[source]#

Return or set the this plot’s label, as shown in the chart’s legend.

Examples

Create a box plot with custom label.

>>> import pyvista
>>> import numpy as np
>>> chart = pyvista.ChartBox([[0, 1, 1, 2, 3, 3, 4]])
>>> plot = chart.plot
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/c11fc5c93247d9b30facb770635b53e2f1b721b2/14af8/_images/pyvista-plotting-charts-boxplot-label-1_00_00.png

Modify the label.

>>> plot.label = "My awesome plot"
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/797f19a77fe085f67050a9e6cf81b87745c55378/ec878/_images/pyvista-plotting-charts-boxplot-label-1_01_00.png