matplotlib 3d no grid code example Example: turn off grid in matplotlib 3d plt.axis('off') plt.grid(b=None)