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