Sets the range of the y-axis on the given chart.
Examples:
(use '(incanter core charts datasets))
(def chart (xy-plot :speed :dist :data (get-dataset :cars)))
(view chart)
(set-y-range chart 10 60)
(defn set-y-range
" Sets the range of the y-axis on the given chart.
Examples:
(use '(incanter core charts datasets))
(def chart (xy-plot :speed :dist :data (get-dataset :cars)))
(view chart)
(set-y-range chart 10 60)
"
([chart lower upper]
(-> chart
.getPlot
.getRangeAxis
(.setRange lower upper))
chart))
Comments top
No comments for set-y-range. Log in to add a comment.