# Get rid of colored axes planes
# First remove fill
ax.xaxis.pane.fill = False
ax.yaxis.pane.fill = False
ax.zaxis.pane.fill = False
# Now set color to white (or whatever is "invisible")
ax.xaxis.pane.set_edgecolor('w')
ax.yaxis.pane.set_edgecolor('w')
ax.zaxis.pane.set_edgecolor('w')
# Bonus: To get rid of the grid as well:
ax.grid(False)
用同样的例子。您可以使用
set_pane_color
方法设置窗格颜色,如下所述http://matplotlib.org/mpl_toolkits/mplot3d/api.html#axis3d。可以使用RGBA元组设置颜色:对于稍有不同的方法,请参见以下内容:
看这个blog post,我用它作为我的来源。
相关问题 更多 >
编程相关推荐