How to position the line when adding lines into the plots?

Hi, as shown in the screenshot, why however I change the parameters in the upper-left green box, the added vertical line is always at the center of the graph?

Hi @HaoXu

It’s hard to debug without seeing the whole code but I suspect the issue could be due to difference in datatype of the vline position and the x-axis values. You are setting the vline position in hours and minutes and your x-axis values seem to be of datatype string.
Let me know if this works, or post a reproducible code so someone could help.