Hello,
Is there a way to remove background lines in a Barpolar plot?
So far I’ve tried updating the layout according to the documentation but to no effect: Axes with Python
How to disable grid lines in heatmap plot?
python - How to set background color of the plot and color for gridlines? - Stack Overflow
fig.update_layout(xaxis_showgrid=False, yaxis_showgrid=False)
I also tried another option such as:
fig.update_xaxes(showgrid=False, zeroline=False)
fig.update_yaxes(showgrid=False, zeroline=False)
This did not work either.
strong text
So how does one remove the lines or turn them off or make them invisible? Any ideas?
fig = go.Figure(
go.Barpolar(
r=scaled_bidrates,
theta=theta,
width=width,
marker={
"colorscale": px.colors.sequential.Reds,
"showscale": True,
"color": df['winrate'],
"line_color": None,
"line_width": 1,
"cmin": df['winrate'].min(),
"cmax": df['winrate'].max(),
},
text=labels,
hoverinfo='all'
)
)
angular_tickvals = [(i + 1) * 360 / num_slices for i in range(num_slices)]
fig.update_layout(
template=None,
polar = dict(
radialaxis = dict(range=[0, 5], showticklabels=False, ticks=''),
angularaxis = dict(showticklabels=False, ticks=''),
),
polar_angularaxis_tickvals=angular_tickvals,
height=500,
title='Performance Chart'
)
#fig.update_xaxes(showgrid=False, zeroline=False)
#fig.update_yaxes(showgrid=False, zeroline=False)
fig.update_layout(xaxis_showgrid=False, yaxis_showgrid=False)
fig.show()