1.2.3-SNAPSHOT Arrow_down_16x16



  • (function-plot* 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:2177 top

(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.