(defmulti set-theme-bw
"
Examples:
(use '(incanter core stats charts datasets))
(doto (histogram (sample-normal 1000))
set-theme-bw
view)
(doto (histogram (sample-normal 1000))
set-theme-bw
(add-histogram (sample-normal 1000 :mean 1))
view)
(doto (scatter-plot :speed :dist :data (get-dataset :cars))
set-theme-bw
view)
(doto (scatter-plot :speed :dist :data (get-dataset :cars))
set-theme-bw
(set-stroke :dash 5)
(add-points (plus ($ :speed (get-dataset :cars)) 5) (plus ($ :dist (get-dataset :cars)) 10))
view)
(doto (scatter-plot :speed :dist :data (get-dataset :cars))
set-theme-bw
(set-stroke :dash 5)
(add-function sin 0 25)
view)
(doto (xy-plot :speed :dist :data (get-dataset :cars))
set-theme-bw
view)
(doto (scatter-plot :speed :dist :data (get-dataset :cars))
set-theme-bw
(add-lines :speed :dist :data (get-dataset :cars))
view)
(doto (box-plot (sample-gamma 1000 :shape 1 :rate 2)
:legend true)
view
(add-box-plot (sample-gamma 1000 :shape 2 :rate 2))
(add-box-plot (sample-gamma 1000 :shape 3 :rate 2))
set-theme-bw)
(doto (bar-chart [:a :b :c] [10 20 30] :legend true)
view
set-theme-bw
(add-categories [:a :b :c] [5 25 40]))
(doto (line-chart [:a :b :c] [10 20 30] :legend true)
view
set-theme-bw
(add-categories [:a :b :c] [5 25 40]))
"
(fn [chart & options] (type (-> chart .getPlot .getDataset))))
Used in 0 other vars
Comments top
No comments for set-theme-bw. Log in to add a comment.