Browse files

Merge pull request #171 from pygatea/master

* allow passing extra options to gnuplot in mu:plot-histogram
  • Loading branch information...
2 parents 811712e + dc64072 commit 0f7938083fb86012b1d5be018f254a96eaafc8df @djcb committed Mar 19, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 guile/mu/plot.scm
@@ -46,7 +46,7 @@ not found."
-(define* (mu:plot-histogram data title x-label y-label #:optional (text-only #f))
+(define* (mu:plot-histogram data title x-label y-label #:optional (text-only #f) (extra-gnuplot-opts '()))
"Plot DATA with TITLE, X-LABEL and X-LABEL. If TEXT-ONLY is true,
display using raw text, otherwise, use a graphical window. DATA is a
list of cons-pairs (X . Y)."
@@ -62,6 +62,7 @@ list of cons-pairs (X . Y)."
"set xlabel \"" x-label "\"\n"
"set ylabel \"" y-label "\"\n"
"set boxwidth 0.9\n"
+ (string-join extra-gnuplot-opts "\n")
"plot \"" datafile "\" using 2:xticlabels(1) with boxes fs solid\n")
(close-pipe gnuplot)))

0 comments on commit 0f79380

Please sign in to comment.