使用 matplotlib 绘制 3D 绘图的两个 Z 轴

Oop*_*ser 7 python matplotlib

我正在尝试plot_trisurf使用以下代码进行绘图:

fig = plt.figure()
ax = fig.gca(projection='3d')
ax.plot_trisurf(X1,Y1,Z1)
ax.plot_trisurf(X2,Y2,Z2)
Run Code Online (Sandbox Code Playgroud)

Z1 和 Z2 的比例有几个数量级不同。

如何共享 X 和 Y 轴,但不共享 Z ?

在 2D 中,我有函数“twinx()”,但我找不到 3D 的解决方案。