Search code examples
pythonmatplotlib3dgeometry-surface

Plotting surface without axes


I want to plot a surface without axes planes.. I think I'll explain better with images:

I want to get whis one:

desirerd

Instead, I'm getting this:

current


Solution

  • This one disables all the axes stuff:

    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)