1.2.3-SNAPSHOT Arrow_down_16x16

add-function*

incanter.charts

  • (add-function* chart function min-range max-range & options)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/charts.clj:584 top

(defn add-function*
  ([chart function min-range max-range & options]
    (let [opts (when options (apply assoc {} options))
           step-size (or (:step-size opts) 
			 (float (/ (- max-range min-range) 500)))
           x (range min-range max-range step-size)
           series-lab (or (:series-label opts) 
			  (format "%s" 'function))]
       (add-lines chart x (map function x) :series-label series-lab))))
Vars in incanter.charts/add-function*: defn let map
Used in 0 other vars

Comments top

No comments for add-function*. Log in to add a comment.