Renderer.add_border

Contents

Renderer.add_border#

Renderer.add_border(
color: ColorLike = 'white',
width: float = 1.0,
edges: list[str] | tuple[str, ...] | None = None,
) → vtkActor2D[source]#

Add borders around the frame.

Parameters:
colorColorLike, default: “white”

Color of the border.

widthfloat, default: 1.0

Width of the border.

edgeslist[str] | tuple[str, …], optional

Which edges of the frame to draw. Any subset of ('top', 'left', 'bottom', 'right'). When None (the default) all four edges are drawn.

Returns:
vtkActor2D

Border actor.