Merge pull request #330 from asamarin/master

Fix bottom='off' to bottom=False in tools_matplotlib.ipynb
main
Aurélien Geron 2021-03-02 10:41:53 +13:00 committed by GitHub
commit 51313defa5
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@
"ax = plt.subplot(133)\n", "ax = plt.subplot(133)\n",
"plt.plot(x, x**3)\n", "plt.plot(x, x**3)\n",
"plt.minorticks_on()\n", "plt.minorticks_on()\n",
"ax.tick_params(axis='x', which='minor', bottom='off')\n", "ax.tick_params(axis='x', which='minor', bottom=False)\n",
"ax.xaxis.set_ticks([-2, 0, 1, 2])\n", "ax.xaxis.set_ticks([-2, 0, 1, 2])\n",
"ax.yaxis.set_ticks(np.arange(-5, 5, 1))\n", "ax.yaxis.set_ticks(np.arange(-5, 5, 1))\n",
"ax.yaxis.set_ticklabels([\"min\", -4, -3, -2, -1, 0, 1, 2, 3, \"max\"])\n", "ax.yaxis.set_ticklabels([\"min\", -4, -3, -2, -1, 0, 1, 2, 3, \"max\"])\n",