Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

modify default behavior to set stroke for all series - fixes #76 #77

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 2 deletions.
  1. +6 −2 modules/incanter-charts/src/incanter/charts.clj
View
8 modules/incanter-charts/src/incanter/charts.clj
@@ -3151,7 +3151,7 @@
"
([chart & options]
(let [{:keys [width dash series dataset cap join]
- :or {width 1.0 dash 1.0 series 0 dataset 0
+ :or {width 1.0 dash 1.0 series :all dataset 0
cap java.awt.BasicStroke/CAP_ROUND
join java.awt.BasicStroke/JOIN_ROUND}} (apply hash-map options)
renderer (-> chart .getPlot (.getRenderer dataset))
@@ -3161,7 +3161,11 @@
1.0
(float-array 1.0 dash)
0.0)]
- (.setSeriesStroke renderer series stroke)
+ (if (= :all series)
+ (doto renderer
+ (.setAutoPopulateSeriesStroke false)
+ (.setBaseStroke stroke))
+ (.setSeriesStroke renderer series stroke))
chart)))
Something went wrong with that request. Please try again.