Hello John,

John Kitchin <jkitc...@andrew.cmu.edu> writes:

> I think you can use something like this:
>
> #+BEGIN_SRC python :results output file :var fname="test.png"
> import matplotlib.pyplot as plt
> import io
>
> f = io.StringIO()
> plt.plot([1, 2, 3, 17])
> plt.savefig(fname)
> print(fname, end='')
> #+END_SRC
>
> It is in Python3.

Thank you.  That works.

Best wishes,
Roger

Reply via email to