1.2.3-SNAPSHOT permalink Arrow_down_16x16

set-theme-bw

incanter.charts



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]))


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

(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))))
Vars in incanter.charts/set-theme-bw: -> defmulti fn type
Used in 0 other vars

Comments top

No comments for set-theme-bw. Log in to add a comment.