How to hide axes and gridlines in Matplotlib (python)
Turn the axes off with:
plt.axis('off')
And gridlines with:
plt.grid(b=None)
# Hide grid lines
ax.grid(False)
# Hide axes ticks
ax.set_xticks([])
ax.set_yticks([])
ax.set_zticks([])
Note, you need matplotlib>=1.2 for set_zticks()
to work.