没有轴的绘图表面
我想绘制一个没有轴平面的曲面.. 我想我会用图像更好地解释:
我想得到一个:
相反,我得到这个:
I want to plot a surface without axes planes..
I think I'll explain better with images:
I want to get whis one:
Instead, I'm getting this:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这会禁用所有轴的东西:
This one disables all the axes stuff:
经过多次的头撞墙之后,我想出了这个:
接下来,我打赌你会想要关闭蜱虫、蜱虫标签等。我做不到!
人们可能会认为
ax.axis("off")
、ax.xaxis.visible(False)
、ax.xaxis.set_alpha(0.0)
> 会做一些值得注意的事情。我使用的是 1.0.1 版本,我怀疑 axis3d 对象中仍然存在很多错误。最近看到了很多变化。
After much beating of head against wall, I was able to come up with this:
Next, i bet you'll want the ticks, ticklabels, etc, turned off. I can't do it!
One would think that
ax.axis("off")
,ax.xaxis.visible(False)
,ax.xaxis.set_alpha(0.0)
would do something noticeable.I'm using version 1.0.1 and I'm suspecting there are still a lot of bugs in the axis3d object. It's seen a lot of changes lately.
你想要的是
grid
关键字(如果我正确理解了问题):这将有助于了解你如何设置你的情节,但至少对我来说在
pylab
中乱搞code>,ax.grid(on=False)
成功了。这将关闭投影到立方体侧面的网格。有关更多详细信息,请参阅 mplot3d API:http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d /api.html
What you want is the
grid
keyword (if I understood the question correctly):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