Surface without axes

I want to build a surface without axes. I think I’ll better explain the images:

I want to get the following:

desirerd

Instead, I get the following:

current

+3
source share
3 answers

This disables all things by axes:

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)
+6
source

After a big beating of my head against the wall, I was able to come up with this:

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)

Then, I'm sure you will want ticks, tags, etc. disconnected. I can not do it!

You might think that ax.axis("off"), ax.xaxis.visible(False), ax.xaxis.set_alpha(0.0)do something significant.

I am using version 1.0.1 and I suspect there are still a lot of errors in the axis3d object. He has seen a lot of changes lately.

enter image description here

+3
source

, grid ( ):

fig=figure()
ax = fig.add_subplot(111,projection="3d")
ax.plot(X,Y,Z)
ax.grid(on=False)
show()

, , , , pylab, ax.grid(on=False) . , . . API mplot3d:

http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/api.html

+2
source

Source: https://habr.com/ru/post/1795096/


All Articles