no commit message

parent 9366f319
...@@ -647,16 +647,16 @@ ...@@ -647,16 +647,16 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 81, "execution_count": 82,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"<matplotlib.legend.Legend at 0x7fa2ed940f98>" "<matplotlib.legend.Legend at 0x7fa2ed92aa20>"
] ]
}, },
"execution_count": 81, "execution_count": 82,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
}, },
...@@ -684,7 +684,7 @@ ...@@ -684,7 +684,7 @@
"ax1.xaxis.set_major_locator(plt.MultipleLocator(50))\n", "ax1.xaxis.set_major_locator(plt.MultipleLocator(50))\n",
"ax1.plot(x,zero,color=\"black\",label=\"Wheat\")\n", "ax1.plot(x,zero,color=\"black\",label=\"Wheat\")\n",
"ax1.plot(x,y_wages,color=\"red\",label=\"Wages\")\n", "ax1.plot(x,y_wages,color=\"red\",label=\"Wages\")\n",
"ax1.fill_between(x,y_wheat,0,color=\"black\",step=\"mid\",alpha=0.5)\n", "ax1.fill_between(x,y_wheat,0,color=\"black\",step=\"mid\",alpha=0.5)#alpha permet d'avoir un remplissage semi-transparent\n",
"ax1.fill_between(x,y_wages,0,color=\"blue\")\n", "ax1.fill_between(x,y_wages,0,color=\"blue\")\n",
"ax1.legend(loc='upper left')\n" "ax1.legend(loc='upper left')\n"
] ]
...@@ -692,7 +692,11 @@ ...@@ -692,7 +692,11 @@
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [] "source": [
"### Deuxième exercice\n",
"Il s'agit maintenant d'avoir 2 axes Y différents pour les courbes.\n",
"Pour cela, je vais encore m'inspirer de la doc de [matplotlib](https://matplotlib.org/gallery/subplots_axes_and_figures/two_scales.html#sphx-glr-gallery-subplots-axes-and-figures-two-scales-py) "
]
}, },
{ {
"cell_type": "code", "cell_type": "code",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment