How to underlay VSpan without messing up axes?

Hi, there is an issue about that #4398

In order to unlink the y-axis, you can specify the dimensions of your Vspan.

And if you want to fix the x-axis, you can set the padding of your VSpan to 0

time_span = hv.VSpan(np.datetime64("2020-07-01"), np.datetime64("2020-09-30"))

(time_span.redim.label(y="data_o1").opts(padding=0)* df.hvplot.line(y="data_o1", width=300) + 
(time_span.redim.label(y="data_o10").opts(padding=0)*df.hvplot.line(y="data_o10", width=300))

3 Likes