我有3个3D表面图,当我旋转一个单一表面图时,我想一起旋转。这可以在MATLAB中使用linkprop功能完成,而我想知道Python 3.X中是否有类似的东西?
ax1 = fig.add_subplot(2,2,3, projection='3d', proj_type = 'ortho')
ax1.plot_surface(vect1,vect2,Q,edgecolors='#000000', cmap=cm.viridis)
ax1.set_title('Q')
ax1.set_zlabel('Q')
ax1.set_ylabel(titl1)
ax1.set_xlabel(titl2)
ax1.set_xlim([xvec_beg,xvec_end]) # values defined in matlab script need to store in variables
ax1.set_ylim([yvec_beg,yvec_end]) # same as above
ax1.grid(True)
plt.tight_layout()
ax2 = fig.add_subplot(2,2,4, projection='3d', proj_type = 'ortho')
ax2.plot_surface(vect1,vect2,Amp,edgecolors='#000000', cmap=cm.viridis)
ax2.set_title('Sensitivity')
ax2.set_zlabel('Amp')
ax2.set_ylabel(titl1)
ax2.set_xlabel(titl2)
ax2.set_xlim([xvec_beg,xvec_end]) # values defined in matlab script need to store in variables
ax2.set_ylim([yvec_beg,yvec_end]) # same as above
ax2.grid(True)
plt.tight_layout()
ax3 = fig.add_subplot(2,2,2, projection='3d', proj_type = 'ortho' )
ax3.plot_surface(vect1,vect2,Fs,edgecolors='#000000', cmap=cm.viridis)
ax3.set_title('Fs')
ax3.set_zlabel('Fs')
ax3.set_ylabel(titl1)
ax3.set_xlabel(titl2)
ax3.set_xlim([xvec_beg,xvec_end]) # values defined in matlab script need to store in variables
ax3.set_ylim([yvec_beg,yvec_end]) # same as above
ax3.grid(True)
plt.tight_layout()