1.2.3-SNAPSHOT permalink Arrow_down_16x16

set-x-range

incanter.charts

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

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

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

Comments top

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