2015-04-01 80 views

回答

2

這比你鏈接的例子較少通用的,但它的伎倆:

import numpy as np 
import matplotlib.pyplot as plt 
from mpl_toolkits.mplot3d import Axes3D 

yy, zz = np.meshgrid(range(2), range(2)) 
xx = yy*0 

ax = plt.subplot(projection='3d') 
ax.plot_surface(xx, yy, zz) 
plt.show() 

enter image description here