1.2.3-SNAPSHOT permalink Arrow_down_16x16

set-y-range

incanter.charts

  • (set-y-range chart lower upper)
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)

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:838 top

(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))
Vars in incanter.charts/set-y-range: -> defn
Used in 0 other vars

Comments top

No comments for set-y-range. Log in to add a comment.