diff --git a/module2/exo3/exercice.ipynb b/module2/exo3/exercice.ipynb index 5e8e4417636d2e6fe5c61e7fa221d8ce6ffe1d4e..e6ac4fd8a9b9a27623c09534879f92aaceae5633 100644 --- a/module2/exo3/exercice.ipynb +++ b/module2/exo3/exercice.ipynb @@ -52,6 +52,37 @@ "plt.show" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "i = 0\n", + "yAxis = []\n", + "\n", + "for element in dataset:\n", + " yAxis.append(i)\n", + " i += 1\n", + " \n", + "plt.plot(dataset,\n", + " yAxis,\n", + " color='b',\n", + " linewidth=1)\n", + "\n", + "plt.rc('grid', linestyle='-', linewidth=1)\n", + "plt.grid(True)\n", + "\n", + "plt.show()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "code", "execution_count": null,