pyvista.ChartMPL.border_width

pyvista.ChartMPL.border_width#

property ChartMPL.border_width[source]#

Return or set the chart’s border width.

Examples

Create a matplotlib chart with a thick, dashed red border.

>>> import pyvista as pv
>>> chart = pv.ChartMPL()
>>> plots = chart.figure.axes[0].plot([0, 1, 2], [2, 1, 3])
>>> chart.border_color = 'r'
>>> chart.border_width = 5
>>> chart.border_style = '--'
>>> chart.show(interactive=False)
../../../../_images/pyvista-ChartMPL-border_width-2_01_00.png