Liking cljdoc? Tell your friends :D
Clojure only.

incanter.svg

This library currently has only a single function, save-svg, which saves charts as an SVG file.

This library currently has only a single function, save-svg, which saves
charts as an SVG file.
raw docstring

save-svgclj

(save-svg chart
          filename-or-stream
          &
          {:keys [width height] :or {width 500 height 400}})

Save a chart object as an SVG document.

As with incanter.core/save, a java.io.OutputStream can be used in place of a filename.

Arguments: chart filename

Options: :width (default 500) :height (default 400)

Examples:

(use '(incanter core charts svg)) (save-svg (function-plot sin -4 4) "./svg-chart.svg")

Save a chart object as an SVG document.

As with incanter.core/save, a java.io.OutputStream can be used in place of a
filename.

Arguments:
  chart
  filename

Options:
  :width (default 500)
  :height (default 400)

Examples:

  (use '(incanter core charts svg))
  (save-svg (function-plot sin -4 4) "./svg-chart.svg")

sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close