Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.Distribution.Plot
Description
This module provides functions to plot distributions to files.
- plot :: (Show a, Ord a) => FilePath -> [Distribution a] -> IO ()
- plotWith :: Ord a => PlotOptions a -> FilePath -> [Distribution a] -> IO ()
- data PlotOptions a = PlotOptions {
- getAggregator :: Aggregator a
- getTitle :: String
- getLabels :: [String]
- getColors :: [AlphaColour Double]
- getDisplayer :: a -> String
- getDimensions :: (Int, Int)
- getFormat :: FileFormat
- getExtraDomain :: Set a
- getStacked :: Bool
- getInversed :: Bool
- plot_aggregator :: Simple Lens (PlotOptions a) (Aggregator a)
- plot_title :: Simple Lens (PlotOptions a) String
- plot_labels :: Simple Lens (PlotOptions a) [String]
- plot_colors :: Simple Lens (PlotOptions a) [AlphaColour Double]
- plot_displayer :: Simple Lens (PlotOptions a) (a -> String)
- plot_dimensions :: Simple Lens (PlotOptions a) (Int, Int)
- plot_format :: Simple Lens (PlotOptions a) FileFormat
- plot_extra_domain :: Simple Lens (PlotOptions a) (Set a)
- plot_stacked :: Simple Lens (PlotOptions a) Bool
- plot_inversed :: Simple Lens (PlotOptions a) Bool
Plotting
plot :: (Show a, Ord a) => FilePath -> [Distribution a] -> IO () Source
Plots the given distributions to PNG file.
See plotWith
for more options.
plotWith :: Ord a => PlotOptions a -> FilePath -> [Distribution a] -> IO () Source
Plots the given distributions to a file.
Options
data PlotOptions a Source
Options for plotting distributions.
Constructors
PlotOptions | |
Fields
|
Instances
Show a => Default (PlotOptions a) |
Lenses
plot_aggregator :: Simple Lens (PlotOptions a) (Aggregator a) Source
Lens for getAggregator
.
plot_title :: Simple Lens (PlotOptions a) String Source
Lens for getTitle
.
plot_labels :: Simple Lens (PlotOptions a) [String] Source
Lens for getLabels
.
plot_colors :: Simple Lens (PlotOptions a) [AlphaColour Double] Source
Lens for getColors
.
plot_displayer :: Simple Lens (PlotOptions a) (a -> String) Source
Lens for getDisplayer
.
plot_dimensions :: Simple Lens (PlotOptions a) (Int, Int) Source
Lens for getDisplayer
.
plot_format :: Simple Lens (PlotOptions a) FileFormat Source
Lens for getFormat
.
plot_extra_domain :: Simple Lens (PlotOptions a) (Set a) Source
Lens for getExtraDomain
.
plot_stacked :: Simple Lens (PlotOptions a) Bool Source
Lens for getStacked
.
plot_inversed :: Simple Lens (PlotOptions a) Bool Source
Lens for getInversed
.