Wrong annotation location of vrect on log graph

Good day, Guys. I have find an error related to the “vrect” component on graph with log axes .

The pictures shows the error. The Annotation shifted on ~10^2000. Vrect was showed correct.

You can see code of vrect below. The annotation is not attached to vrect

fig.add_vrect(
    x0=row['BSTART'], 
    x1=row['BEND'], 
    annotation_text=row['nam'], 
    annotation_position="top right",
    fillcolor=row['color'], 
    opacity=0.3, 
    line_width=0
)

Here is another example

Any ideas how to fix it?

I don’t know if you have found a fix, but I had to follow the fixes found here:
https://github.com/plotly/plotly.js/issues/1258

I had to do something like this to the coordinates of an annotation.

x=math.log10(val), y=math.log10(val)