* merge branch 'master' of github.com:djcb/mu

This commit is contained in:
djcb 2013-03-22 08:02:50 +02:00
commit f3c6bb8985
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,7 @@ not found."
progpath
#f))))
2
(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")
gnuplot)
(close-pipe gnuplot)))