Update exercice_python_en.org

parent cfd8fcb4
......@@ -29,7 +29,7 @@ x=np.array(data)
1) Sequence plot
#+begin_src python :results output graphics file :session :var matplot_lib_filename=(org-babel-temp-file "figure1" ".png") :exports both
#+begin_src python :results output file :session :var matplot_lib_filename="./figure1.png" :exports both
plt.clf()
plt.plot(x)
plt.savefig(matplot_lib_filename)
......@@ -37,9 +37,9 @@ print(matplot_lib_filename)
#+end_src
#+RESULTS:
[[file:/tmp/babel-oymgiS/figure1oaBBrp.png]]
[[file:./figure1.png]]
#+begin_src python :results output graphics file :session :var matplot_lib_filename=(org-babel-temp-file "figure2" ".png") :exports both
#+begin_src python :results output file :session :var matplot_lib_filename="./figure2.png" :exports both
plt.clf()
plt.hist(x)
plt.savefig(matplot_lib_filename)
......@@ -47,6 +47,6 @@ print(matplot_lib_filename)
#+end_src
#+RESULTS:
[[file:/tmp/babel-oymgiS/figure23T6EDX.png]]
[[file:./figure2.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