I am trying to get rid of the gridlines in all the subplots of the scatter_matrix plot. I have set the showgrid parameter to False for the x-axis and y-axis, but the majority of the subplots do have the gridlines still being presented. How do I resolve this issue?
This is my code:
import plotly.express as px
df = px.data.iris()
fig = px.scatter_matrix(df,
dimensions=["sepal_width", "sepal_length", "petal_width", "petal_length"],
color="species")
fig.for_each_xaxis(lambda x: x.update(showgrid=False))
fig.for_each_yaxis(lambda x: x.update(showgrid=False))
fig.show()