Hello Everyone,
In plotly, how can I set each cell color to white? I looks at the official documents but cannot find any variable relate to that setting.
Hello Everyone,
In plotly, how can I set each cell color to white? I looks at the official documents but cannot find any variable relate to that setting.
HI @Jiananz ,
Try this code :
#
import plotly.graph_objects as go
fig = go.Figure(
data=[
go.Heatmap(
z=[[1, 1, 1], [1, 1, 1], [1, 1, 1]],
xgap=4,
ygap=4,
colorscale=["#08a", "#08a"],
showscale=False,
),
],)
fig.update_layout(
yaxis_scaleanchor="x",
plot_bgcolor="#fff",
width=400,
height=400,
margin=dict(b=0, t=20, l=0, r=20)
)
fig.show()
The code above is modification of this post below: