# -*- mode: snippet -*- # name: image-python # key: image-python # condition: t # -- #+begin_src python :session *Python* :results graphics file output :file "./plots/`(format-time-string "%Y%m%d")`_$1" :exports results fig, ax = plt.subplots() data = $2 ax.plot(data, '.b') fig #+end_src