Gridwidth is not the same for all gridlines

I am facing a problem with the gridwidth not the same for all grid lines. The thickest lines vary when you zoom-in and zoom-out. I need to make all grid lines have the same width. I changed the gridwidth many values less than 1 and greater than 1, but the issue still exists. I think this is a bug in plotly. I saw there is a thread not answered yet. Question

import as px
df =

fig = px.scatter(df, x="sepal_width", y="sepal_length", facet_col="species")
fig.update_xaxes(showgrid=True, gridwidth=1, gridcolor='black')

1 Like

Hi, did you find any solution to this?

hi @mineshj1291 @Phoenix

It seems like a bug to me. I tried changing the gridwidth as well, but the width doesn’t remain equal among all lines. It’s as if a line or two are bolded compared to others when zooming in.

Would either of you like to report this as a bug on the repo?