How to hide axes and gridlines in Matplotlib (python)

The Solution to How to hide axes and gridlines in Matplotlib (python) is


# 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.

~ Answered on 2017-07-17 16:15:33


Most Viewed Questions: