Skip to content

Instantly share code, notes, and snippets.

@mmcgrana
Created March 31, 2010 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmcgrana/351077 to your computer and use it in GitHub Desktop.
Save mmcgrana/351077 to your computer and use it in GitHub Desktop.
(require '[clojure.contrib.shell-out :as shell])
(require '[clojure.contrib.duck-streams :as streams])
(let [eps (shell/sh "gnuplot" "-e" "set term postscript; plot sin(x)/x" :out :bytes)]
(with-open [out (streams/writer "example.eps")]
(streams/copy eps out)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment