"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.legend(loc='upper left')\n"
]
...
...
@@ -692,7 +692,11 @@
{
"cell_type": "markdown",
"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) "