简体   繁体   中英

Plotly Heatmap Subplot, Change Z Axis Range

Is there any way to have a shared z axis when using a heatmap subplot? As you can see in the picture, the two plots have their own scale and the numbers 60, 40 and 20 appear twice.

日历热图

需要在两个热图中设置 zmin=1, zmax=100。

Just an update in terms of newer versions: in v4 you can specify a shared coloraxis, and update properties for the specified coloraxis in layout: eg for python

fig.add_trace(go.Heatmap(z = z, x = x, y = y, coloraxis = 'coloraxis1'))
fig.update_layout(coloraxis1 = {'colorscale':'Electric'})

你能分享这个日历即的代码吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM