Commit 99e213b1 authored by escuiller's avatar escuiller

partie 2 exo 2 fichier org

parent 50dbc5c0
...@@ -142,3 +142,41 @@ round(np.std(données, ddof=1), 2) ...@@ -142,3 +142,41 @@ round(np.std(données, ddof=1), 2)
#+RESULTS: #+RESULTS:
: 4.33 : 4.33
** Graphiques
**** Séquence
#+begin_src python :results file :session :exports source
import matplotlib.pyplot as plt
plt.figure(figsize=(5,5))
plt.plot(données)
plt.tight_layout()
plt.savefig("sequence.png")
#+end_src
#+RESULTS:
[[file:[<matplotlib.lines.Line2D object at 0x7fb614aa2df0>]]]
[[file:[<matplotlib.lines.Line2D object at 0x7fb615067220>]]]
[[file:[<matplotlib.lines.Line2D object at 0x7fb615613dc0>]]]
[[file:[<matplotlib.lines.Line2D object at 0x7fb6159ccaf0>]]]
[[sequence.png]]
**** Histogramme
#+begin_src python :results file :session :exports both
plt.figure(figsize=(10,5))
plt.hist(données)
plt.tight_layout()
plt.savefig("histogramme.png")
#+end_src
#+RESULTS:
[[file:(array([ 4., 3., 5., 9., 16., 20., 22., 9., 8., 4.]), array([ 2.8 , 4.86, 6.92, 8.98, 11.04, 13.1 , 15.16, 17.22, 19.28,
21.34, 23.4 ]), <a list of 10 Patch objects>)]]
[[histogramme.png]]
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