pyvista.plotting.charts.LinePlot2D.label#

property LinePlot2D.label[source]#

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

Examples

Create a 2D line plot with custom label.

>>> import pyvista
>>> chart = pyvista.Chart2D()
>>> plot = chart.line([0, 1, 2], [2, 1, 3])
>>> plot.label = "My awesome plot"
>>> chart.show()
https://d33wubrfki0l68.cloudfront.net/6f275b30ea8252749253e97f2c61dbc81cfdef53/28844/_images/pyvista-plotting-charts-lineplot2d-label-1_00_00.png