ax.set_xticks([]), ax.set_yticks([]) replaces plt.xticks([]), plt.yticks([])