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