Update exercice_python_fr.org

parent 924c05e4
...@@ -87,7 +87,7 @@ Nom du plot lineaire : ...@@ -87,7 +87,7 @@ Nom du plot lineaire :
#+NAME: plot_linear_emacs #+NAME: plot_linear_emacs
- plot-linear.png - plot-linear.png
#+begin_src python :results value file :session :export both :var plot_linear=plot_linear_emacs #+begin_src python :results silent :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)):
...@@ -95,10 +95,8 @@ for i in range(len(df)): ...@@ -95,10 +95,8 @@ for i in range(len(df)):
plt.legend(df["Country/Region"]) plt.legend(df["Country/Region"])
plt.savefig(plot_linear[0]) plt.savefig(plot_linear[0])
plot_linear[0]
#+end_src #+end_src
#+RESULTS:
[[file:plot-linear.png]] [[file:plot-linear.png]]
** Affichage des donnees (echelle logarithmique) ** Affichage des donnees (echelle logarithmique)
...@@ -109,12 +107,10 @@ Nom du plot logarithmique : ...@@ -109,12 +107,10 @@ Nom du plot logarithmique :
#+NAME: plot_log_emacs #+NAME: plot_log_emacs
- plot-log.png - plot-log.png
#+begin_src python :results value file :session :export both :var plot_log=plot_log_emacs #+begin_src python :results silent :session :export both :var plot_log=plot_log_emacs
plt.yscale("log") plt.yscale("log")
plt.savefig(plot_log[0]) plt.savefig(plot_log[0])
plot_log[0]
#+end_src #+end_src
#+RESULTS:
[[file:plot-log.png]] [[file:plot-log.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