Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
23db65e7e2b5fb82db5e83fb70a96150
mooc-rr
Commits
99e213b1
Commit
99e213b1
authored
Apr 24, 2020
by
escuiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
partie 2 exo 2 fichier org
parent
50dbc5c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
exercice_python_fr.org
module2/exo2/exercice_python_fr.org
+38
-0
No files found.
module2/exo2/exercice_python_fr.org
View file @
99e213b1
...
@@ -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]]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment