Why is it so hard to fins information for plotly graph objects!

Hi @twelsh37 Iā€™m a bit late to the party, but maybe interesting:

You can switch on/off the gridlines:

fig.update_yaxes(showgrid=True)
fig.update_yaxes(showgrid=False)

To change the style of the grid:

import plotly.graph_objects as go

fig = go.Figure(go.Scatter(x=[1,2], y=[1,2], mode='lines+markers'))
fig.update_xaxes(gridwidth=3, gridcolor='red')
fig.update_yaxes(griddash='dash', gridcolor='black', gridwidth=2)

fig.show()

3 Likes