Hallöchen!
Pierre de Buyl writes:
> I have success with the following:
> #+begin_src python :results output raw :exports results
> import numpy, matplotlib, matplotlib.pyplot
> figure = matplotlib.pyplot.figure()
> axes = figure.add_subplot(111, title=u"Hello", xlabel="x", ylabel="y")
> x
Hallöchen!
Eric Schulte writes:
> You could try
> #+begin_src python :exports results :file /tmp/plot_test.png
> ...
> #+end_src
> Which should behave as desired.
Thank you, I think this is how I'll do it. Exporting is not so
important to me (at least, not yet).
Tschö,
Torsten.
--
Torsten
Hi Torsten,
You could try
#+begin_src python :exports results :file /tmp/plot_test.png
...
#+end_src
Which should behave as desired.
Best -- Eric
Torsten Bronger writes:
> Hallöchen!
>
> I wonder what is the best way to include plots generated from Python
> code into my notes. I found a w
Hello,
I have success with the following:
#+begin_src python :results output raw :exports results
import numpy, matplotlib, matplotlib.pyplot
figure = matplotlib.pyplot.figure()
axes = figure.add_subplot(111, title=u"Hello", xlabel="x",
ylabel="y")
x = numpy.arange(-10, 10, 0.1)
axes
Hallöchen!
I wonder what is the best way to include plots generated from Python
code into my notes. I found a way but maybe there's a better one.
What I do is
--8<---cut here---start->8---
#+begin_src python
import numpy, matplotlib, matplotlib.pyplot
fig