Safe Haskell | None |
---|---|
Language | Haskell98 |
- data PlotHist x y = PlotHist {
- _plot_hist_title :: String
- _plot_hist_bins :: Int
- _plot_hist_values :: [x]
- _plot_hist_no_zeros :: Bool
- _plot_hist_range :: Maybe (x, x)
- _plot_hist_drop_lines :: Bool
- _plot_hist_fill_style :: FillStyle
- _plot_hist_line_style :: LineStyle
- _plot_hist_norm_func :: Double -> Int -> y
- histToPlot :: (RealFrac x, Num y, Ord y) => PlotHist x y -> Plot x y
- defaultPlotHist :: PlotHist x Int
- defaultFloatPlotHist :: PlotHist x Double
- defaultNormedPlotHist :: PlotHist x Double
- 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_drop_lines :: forall x y. Lens' (PlotHist x y) Bool
- plot_hist_line_style :: forall x y. Lens' (PlotHist x y) LineStyle
- plot_hist_fill_style :: forall x y. Lens' (PlotHist x y) FillStyle
- plot_hist_norm_func :: forall x y y. Lens (PlotHist x y) (PlotHist x y) (Double -> Int -> y) (Double -> Int -> y)
Histograms
PlotHist | |
|
histToPlot :: (RealFrac x, Num y, Ord y) => PlotHist x y -> Plot x y Source #
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 Source #
The default style is an unnormalized histogram of 20 bins.
defaultFloatPlotHist :: PlotHist x Double Source #
defaultPlotHist
but with real counts
defaultNormedPlotHist :: PlotHist x Double Source #
defaultPlotHist
but normalized such that the integral of the
histogram is one.
Accessors
plot_hist_values :: forall x y. Lens' (PlotHist x y) [x] Source #