How to add "limited" vlines and hlines?

Hi,

how can I add vertical (horizontal) lines which are limited to a specific interval [y0, y1] using the add_vline (add_hline) method? So far, I am only able to plot lines which are covering the whole space.

Kind regards

add_hline and add_vline are special methods of add_shape(type="line"). For instance, a vline in x=1 is equivalent to:

fig.add_shape(
    type="line",
    xref="x", 
    yref="paper",
    x0=1, 
    x1=1, 
    y0=0,
    y1=1
)

More information in the docs