Actor.dash_interval

Actor.dash_interval#

property Actor.dash_interval: float[source]#

Return or set the on-screen length of one dash pattern interval.

The length is a fraction of the renderer’s viewport height, so a subplot dashes at the same rate as a full window of that height. A full pattern repeats every sixteen intervals.

This property only affects lines with a dashed line_style.

Added in version 0.50.

Examples#

Download Python source code | Download Jupyter notebook

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> actor = pl.add_mesh(pv.Line(), line_style='--')
>>> actor.dash_interval = 0.01