Re: [O] Matplotlib (Python) plots inline

2011-06-09 Thread Torsten Bronger
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

Re: [O] Matplotlib (Python) plots inline

2011-06-09 Thread Torsten Bronger
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

Re: [O] Matplotlib (Python) plots inline

2011-06-06 Thread Eric Schulte
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

Re: [O] Matplotlib (Python) plots inline

2011-06-06 Thread Pierre de Buyl
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

[O] Matplotlib (Python) plots inline

2011-06-06 Thread Torsten Bronger
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