軸平面なしでサーフェスをプロットしたい..画像でよりよく説明すると思います:
私はWhis 1を取得したい:
代わりに、私はこれを得ています:
軸平面なしでサーフェスをプロットしたい..画像でよりよく説明すると思います:
私はWhis 1を取得したい:
代わりに、私はこれを得ています:
これはすべての軸のものを無効にします:
ax.grid(False)
for a in (ax.w_xaxis, ax.w_yaxis, ax.w_zaxis):
for t in a.get_ticklines()+a.get_ticklabels():
t.set_visible(False)
a.line.set_visible(False)
a.pane.set_visible(False)
壁に頭をぶつけた後、私はこれを思いつくことができました:
ax.grid(False)
ax.w_xaxis._AXINFO['y']['color'] = (0.9, 0.9, 0.9, 0.0)
ax.w_xaxis._AXINFO['x']['color'] = (0.9, 0.9, 0.9, 0.0)
ax.w_xaxis._AXINFO['z']['color'] = (0.9, 0.9, 0.9, 0.0)
次に、目盛り、目盛りラベルなどをオフにしたいと思うでしょう。私はそれをすることはできません !
ax.axis("off")
、ax.xaxis.visible(False)
、ax.xaxis.set_alpha(0.0)
は何か目立つことをすると思うでしょう。
私はバージョン 1.0.1 を使用していますが、axis3d オブジェクトにはまだ多くのバグがあると思われます。最近、多くの変化が見られます。
What you want is the grid
keyword (if I understood the question correctly):
fig=figure()
ax = fig.add_subplot(111,projection="3d")
ax.plot(X,Y,Z)
ax.grid(on=False)
show()
It would help to see how you are setting up your plot, but at least for me messing around in pylab
, ax.grid(on=False)
did the trick. This turns off the grid projected onto the sides of the cube. See the mplot3d API for more details:
http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/api.html