1.2.3-SNAPSHOT Arrow_down_16x16

set-stroke-color

incanter.charts

  • (set-stroke-color chart color & options)

Examples:
(use '(incanter core charts))

(doto (line-chart [:a :b :c :d] [10 20 5 35])
(set-stroke :width 4 :dash 5)
(set-stroke-color java.awt.Color/blue)
view)

(doto (function-plot sin -10 10 :step-size 0.1)
(set-stroke :width 3 :dash 5)
(set-stroke-color java.awt.Color/gray)
view)

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

(defn set-stroke-color
"
  Examples:
    (use '(incanter core charts))

    (doto (line-chart [:a :b :c :d] [10 20 5 35])
      (set-stroke :width 4 :dash 5)
      (set-stroke-color java.awt.Color/blue)
      view)
   
    (doto (function-plot sin -10 10 :step-size 0.1)
      (set-stroke :width 3 :dash 5)
      (set-stroke-color java.awt.Color/gray)
      view)
       
"
([chart color & options]
   (let [{:keys [series] 
	  :or {series 0}} (apply hash-map options)
	 renderer (-> chart .getPlot .getRenderer)]
     (.setSeriesPaint renderer series color)
     chart)))
Vars in incanter.charts/set-stroke-color: defn let
Used in 0 other vars

Comments top

No comments for set-stroke-color. Log in to add a comment.