chart-histogram 0.4.2 → 0.4.3
raw patch · 2 files changed
+8/−4 lines, 2 filesdep +data-default-classdep −data-defaultdep ~basePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies added: data-default-class
Dependencies removed: data-default
Dependency ranges changed: base
API changes (from Hackage documentation)
- Graphics.Rendering.Chart.Plot.Histogram: plot_hist_bins :: Lens' (PlotHist x_abgj y_abgk) Int
+ Graphics.Rendering.Chart.Plot.Histogram: plot_hist_bins :: Lens' (PlotHist x_a7Bw y_a7Bx) Int
- Graphics.Rendering.Chart.Plot.Histogram: plot_hist_drop_lines :: Lens' (PlotHist x_abgj y_abgk) Bool
+ Graphics.Rendering.Chart.Plot.Histogram: plot_hist_drop_lines :: Lens' (PlotHist x_a7Bw y_a7Bx) Bool
- Graphics.Rendering.Chart.Plot.Histogram: plot_hist_fill_style :: Lens' (PlotHist x_abgj y_abgk) FillStyle
+ Graphics.Rendering.Chart.Plot.Histogram: plot_hist_fill_style :: Lens' (PlotHist x_a7Bw y_a7Bx) FillStyle
- Graphics.Rendering.Chart.Plot.Histogram: plot_hist_line_style :: Lens' (PlotHist x_abgj y_abgk) LineStyle
+ Graphics.Rendering.Chart.Plot.Histogram: plot_hist_line_style :: Lens' (PlotHist x_a7Bw y_a7Bx) LineStyle
- Graphics.Rendering.Chart.Plot.Histogram: plot_hist_no_zeros :: Lens' (PlotHist x_abgj y_abgk) Bool
+ Graphics.Rendering.Chart.Plot.Histogram: plot_hist_no_zeros :: Lens' (PlotHist x_a7Bw y_a7Bx) Bool
- Graphics.Rendering.Chart.Plot.Histogram: plot_hist_norm_func :: Lens (PlotHist x_abgj y_abgk) (PlotHist x_abgj y_adwb) (Double -> Int -> y_abgk) (Double -> Int -> y_adwb)
+ Graphics.Rendering.Chart.Plot.Histogram: plot_hist_norm_func :: Lens (PlotHist x_a7Bw y_a7Bx) (PlotHist x_a7Bw y_a9Q0) (Double -> Int -> y_a7Bx) (Double -> Int -> y_a9Q0)
- Graphics.Rendering.Chart.Plot.Histogram: plot_hist_range :: Lens' (PlotHist x_abgj y_abgk) (Maybe (x_abgj, x_abgj))
+ Graphics.Rendering.Chart.Plot.Histogram: plot_hist_range :: Lens' (PlotHist x_a7Bw y_a7Bx) (Maybe (x_a7Bw, x_a7Bw))
- Graphics.Rendering.Chart.Plot.Histogram: plot_hist_title :: Lens' (PlotHist x_abgj y_abgk) String
+ Graphics.Rendering.Chart.Plot.Histogram: plot_hist_title :: Lens' (PlotHist x_a7Bw y_a7Bx) String
- Graphics.Rendering.Chart.Plot.Histogram: plot_hist_values :: Lens' (PlotHist x_abgj y_abgk) (Vector x_abgj)
+ Graphics.Rendering.Chart.Plot.Histogram: plot_hist_values :: Lens' (PlotHist x_a7Bw y_a7Bx) (Vector x_a7Bw)
Files
Graphics/Rendering/Chart/Plot/Histogram.hs view
@@ -28,7 +28,7 @@ import Control.Lens hiding (moveTo) import Graphics.Rendering.Chart-import Data.Default+import Data.Default.Class import Data.Colour (opaque) import Data.Colour.Names (black, blue)@@ -102,6 +102,10 @@ } -- | Convert a @PlotHist@ to a @Plot@+--+-- N.B. In principle this should be Chart's @ToPlot@ class but unfortunately+-- this does not allow us to set bounds on the x and y axis types, hence+-- the need for this function. histToPlot :: (RealFrac x, Num y, Ord y) => PlotHist x y -> Plot x y histToPlot p = Plot { _plot_render = renderPlotHist p,
chart-histogram.cabal view
@@ -1,5 +1,5 @@ Name: chart-histogram-Version: 0.4.2+Version: 0.4.3 Synopsis: Easily render histograms with Chart Description: A library for rendering histograms with the Chart library License: BSD3@@ -19,10 +19,10 @@ Exposed-modules: Numeric.Histogram, Graphics.Rendering.Chart.Plot.Histogram - Build-depends: base >=4.6 && <4.9,+ Build-depends: base >=4.5 && <4.9, vector >=0.9 && <0.11, lens >=3.9 && <4.5,- data-default >=0.5 && <0.6,+ data-default-class >=0.0.1 && <0.1, colour >=2.2.1 && <2.4, Chart >=1.0 && <1.4