Chart-1.8.2: A library for generating 2D Charts and Plots

Safe HaskellNone
LanguageHaskell98

Graphics.Rendering.Chart.Plot.Histogram

Contents

Synopsis

Histograms

data PlotHist x y #

Constructors

PlotHist 

Fields

Instances

Default (PlotHist x Int) # 

Methods

def :: PlotHist x Int #

histToPlot :: (RealFrac x, Num y, Ord y) => PlotHist x y -> Plot x y #

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.

defaultPlotHist :: PlotHist x Int #

The default style is an unnormalized histogram of 20 bins.

defaultFloatPlotHist :: PlotHist x Double #

defaultPlotHist but with real counts

defaultNormedPlotHist :: PlotHist x Double #

defaultPlotHist but normalized such that the integral of the histogram is one.

Accessors

plot_hist_title :: forall x y. Lens' (PlotHist x y) String #

plot_hist_bins :: forall x y. Lens' (PlotHist x y) Int #

plot_hist_values :: forall x y. Lens' (PlotHist x y) [x] #

plot_hist_no_zeros :: forall x y. Lens' (PlotHist x y) Bool #

plot_hist_range :: forall x y. Lens' (PlotHist x y) (Maybe (x, x)) #

plot_hist_norm_func :: forall x y y. Lens (PlotHist x y) (PlotHist x y) (Double -> Int -> y) (Double -> Int -> y) #