doomconfig/snippets/org-mode/image-python

15 lines
292 B
Plaintext
Raw Normal View History

2025-04-15 09:47:15 +02:00
# -*- 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