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
55c671948c2c802a48ec3ed371eaabea
mooc-rr
Commits
3b2122bf
Commit
3b2122bf
authored
May 08, 2020
by
55c671948c2c802a48ec3ed371eaabea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update exercice_python_fr.org
parent
c7622005
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
exercice_python_fr.org
module3/exo3/exercice_python_fr.org
+24
-4
No files found.
module3/exo3/exercice_python_fr.org
View file @
3b2122bf
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
Telechargement des données localement si elle n'existent pas deja.
Telechargement des données localement si elle n'existent pas deja.
Address ou trouver les donnees :
Address
e
ou trouver les donnees :
#+NAME: url_emacs
#+NAME: url_emacs
- https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv
- https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv
...
@@ -87,20 +87,40 @@ Nom du plot lineaire :
...
@@ -87,20 +87,40 @@ Nom du plot lineaire :
#+NAME: plot_linear_emacs
#+NAME: plot_linear_emacs
- plot-linear.png
- plot-linear.png
#+begin_src python :results
silen
t :session :export both :var plot_linear=plot_linear_emacs
#+begin_src python :results
outpu
t :session :export both :var plot_linear=plot_linear_emacs
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
for i in range(len(df)):
for i in range(len(df)):
df.iloc[i]["1/22/20":].plot()
df.iloc[i]["1/22/20":].plot()
df.at[1,"Country/Region"] = "China, Hong Kong"
plt.legend(df["Country/Region"])
plt.legend(df["Country/Region"])
plt.yscale("linear")
plt.yscale("linear")
plt.savefig(plot_linear[0])
plt.savefig(plot_linear[0])
#+end_src
#+end_src
[[file:plot-linear.png]]
#+RESULTS:
#+begin_example
>>> >>> ... ... <matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.axes._subplots.AxesSubplot object at 0x7f66c1db9f10>
<matplotlib.legend.Legend object at 0x7f66c1cb0cd0>
#+end_example
[[file:plot-linear.png]]
** Affichage des donnees (echelle logarithmique)
** Affichage des donnees (echelle logarithmique)
...
...
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