(defn function-plot*
([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)
main-title (or (:title opts) "")
x-lab (or (:x-label opts) (format "%s < x < %s" min-range max-range))
y-lab (or (:y-label opts) (str 'function))
series-lab (or (:series-label opts) (format "%s" 'function))
theme (or (:theme opts) :default)
legend? (true? (:legend opts))]
(set-theme (xy-plot _x (map function _x)
:x-label x-lab
:y-label y-lab
:title main-title
:series-label series-lab
:legend legend?) theme))))
Vars in
incanter.charts/function-plot*:
defn
let
map
Used in 0 other vars
Comments top
No comments for function-plot*. Log in to add a comment.