I am trying to show gridlines on a graph but they don’t seem to appear after multiple attempts.
Code:
fig.update_layout(
hovermode="x unified",
barmode="group",
# bargap = 0.01,
legend=dict(orientation="h",
yanchor='bottom',
y=1.02,
xanchor='left',
x=0),
margin=dict(l=10,
r=10,
t=0,
b=5),
autosize=False,
height=350
)
fig.update_layout({'plot_bgcolor': 'rgba(0,0,0,0)',
'paper_bgcolor': 'rgba(0,0,0,0)'})
fig.update_xaxes(nticks=11,showgrid=True)
fig.update_yaxes(showgrid=True, nticks=10)
return fig
Does anyone have any idea on why it might be the case?