pyvista.Chart2D.active_border_color#

property Chart2D.active_border_color[source]#

Return or set the chart’s border color in interactive mode.

Examples

Create a 2D chart with a thick, dashed red border.

>>> import pyvista as pv
>>> chart = pv.Chart2D()
>>> plot = chart.line([0, 1, 2], [2, 1, 3])
>>> chart.border_color = 'r'
>>> chart.border_width = 5
>>> chart.border_style = '--'
>>> chart.show(interactive=False)
../../../../_images/pyvista-Chart2D-active_border_color-2_00_00.png

Set the active border color to yellow and activate the chart.

>>> chart.active_border_color = 'y'
>>> chart.show(interactive=True)
../../../../_images/pyvista-Chart2D-active_border_color-2_01_00.png