Commits

Steffen Dienst  committed b6d62db

[feature] add-sub-title

  • Participants
  • Parent commits 62e4cc2

Comments (0)

Files changed (1)

File src/chart_utils/jfreechart.clj

 #_(defn add-deviation-plot [chart ys ylows yhighs]
   ;; use deviationrenderer, yintervalseries
   )
+(defn add-sub-title 
+  "Add a subtitle to the chart."
+  [chart text]
+  (.addSubTitle chart (org.jfree.chart.title.TextTitle. text)))
 
 ;;;;;;;;;;;;;;; dynamic charts with multiple sliders in one jframe ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (defn slider 
   (let [plot (.. chart getPlot)] 
     (dotimes [i (.getRangeAxisCount plot)]
       (.. plot getRangeAxis (setRange lower upper))))
-  chart)
+  chart)
+
+;;;;;;;;;;;;;;;;;; Deviation Plots ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;