Update Readme.md

parent 2907fcaa
......@@ -27,7 +27,7 @@
| Export HTML/PDF par nbconvert | Export HTML/PDF/Word via Pandoc | Export LaTeX/Beamer/HTML, styles personnalisés |
### Module2 Exo2
### Module2 Exo2 Exo3
```python
import numpy as np
......@@ -46,3 +46,23 @@ print("Écart-type :", np.std(donnees, ddof=1))
print("Minimum :", np.min(donnees))
print("Médiane :", np.median(donnees))
print("Maximum :", np.max(donnees))
import matplotlib.pyplot as plt
# Affichage graphique : Séquence plot + histogramme
fig, axs = plt.subplots(2, 1, figsize=(10, 8))
# Séquence plot
axs[0].plot(donnees, marker='o', linestyle='-', color='blue')
axs[0].set_title("Séquence plot des données")
axs[0].set_xlabel("Index")
axs[0].set_ylabel("Valeur")
# Histogramme
axs[1].hist(donnees, bins=15, color='skyblue', edgecolor='black')
axs[1].set_title("Histogramme des données")
axs[1].set_xlabel("Valeur")
axs[1].set_ylabel("Fréquence")
plt.tight_layout()
plt.show()
\ No newline at end of file
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