API for svg - Incanter 2.0 (in development)


Full namespace name: incanter.svg

Overview

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

Public Variables and Functions



save-svg

function
Usage: (save-svg chart filename & {: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")


    
    
    Source
  
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.