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
7cb84b8d37d239738c7c51278d3e7831
mooc-rr
Commits
e467ca3a
Commit
e467ca3a
authored
Nov 12, 2020
by
7cb84b8d37d239738c7c51278d3e7831
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update exercice_python_en.org
parent
cfd8fcb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
exercice_python_en.org
module2/exo3/exercice_python_en.org
+4
-4
No files found.
module2/exo3/exercice_python_en.org
View file @
e467ca3a
...
@@ -29,7 +29,7 @@ x=np.array(data)
...
@@ -29,7 +29,7 @@ x=np.array(data)
1) Sequence plot
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.clf()
plt.plot(x)
plt.plot(x)
plt.savefig(matplot_lib_filename)
plt.savefig(matplot_lib_filename)
...
@@ -37,9 +37,9 @@ print(matplot_lib_filename)
...
@@ -37,9 +37,9 @@ print(matplot_lib_filename)
#+end_src
#+end_src
#+RESULTS:
#+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.clf()
plt.hist(x)
plt.hist(x)
plt.savefig(matplot_lib_filename)
plt.savefig(matplot_lib_filename)
...
@@ -47,6 +47,6 @@ print(matplot_lib_filename)
...
@@ -47,6 +47,6 @@ print(matplot_lib_filename)
#+end_src
#+end_src
#+RESULTS:
#+RESULTS:
[[file:
/tmp/babel-oymgiS/figure23T6EDX
.png]]
[[file:
./figure2
.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