Safe Haskell | None |
---|---|
Language | Haskell2010 |
- module Graphics.Rendering.Chart
- module Data.Colour
- module Data.Colour.Names
- module Data.Colour.SRGB.Linear
- module Graphics.Rendering.Chart.Backend.Cairo
- module Graphics.Rendering.Chart.Grid
- module Graphics.Rendering.Chart.Gtk
- module Graphics.Rendering.Chart.State
- module Goal.Core.Plot.Contour
- pixMapPlot :: (Double, Double) -> [[AlphaColour Double]] -> Plot Double Double
- histogramPlot :: (Num a, BarsPlotValue a) => Int -> Double -> Double -> [[Double]] -> PlotBars Double a -> PlotBars Double a
- histogramPlot0 :: (Num a, BarsPlotValue a) => Int -> [[Double]] -> PlotBars Double a -> PlotBars Double a
- logHistogramPlot :: Int -> Double -> Double -> [[Double]] -> PlotBars Double Double -> PlotBars Double Double
- logHistogramPlot0 :: Int -> [[Double]] -> PlotBars Double Double -> PlotBars Double Double
- pixMapLayout :: Int -> Int -> Layout Double Double -> Layout Double Double
- histogramLayout :: BarsPlotValue a => PlotBars Double a -> Layout Double a -> Layout Double a
- logHistogramLayout :: PlotBars Double Double -> Layout Double Double -> Layout Double Double
- histogramLayoutLR :: (BarsPlotValue a, PlotValue b) => PlotBars Double a -> LayoutLR Double a b -> LayoutLR Double a b
- rgbaGradient :: (Double, Double, Double, Double) -> (Double, Double, Double, Double) -> Int -> [AlphaColour Double]
- renderableToAspectWindow :: Bool -> Int -> Int -> Renderable a -> IO ()
Module Exports
module Graphics.Rendering.Chart
module Data.Colour
module Data.Colour.Names
module Data.Colour.SRGB.Linear
module Graphics.Rendering.Chart.Gtk
module Goal.Core.Plot.Contour
Plots
PixMap
pixMapPlot :: (Double, Double) -> [[AlphaColour Double]] -> Plot Double Double Source
Returns a pixmap representation of a matrix style set of doubles. Based on the defaults, the list of colours are assumed to be in (y,x) coordinates, where the origin is at the lower left of the image. If matrix style coordinates are desired, The containing layout should be given a reversed y axis, so that the origin is at the top left of the image.
Histograms
:: (Num a, BarsPlotValue a) | |
=> Int | Number of bins |
-> Double | Min range |
-> Double | Max range |
-> [[Double]] | Data set |
-> PlotBars Double a | Plot |
-> PlotBars Double a | New Plot | Creates a histogram out of a data set. The data set is a list of list of values, where each sublist is a collection of data along an axis. Under and overflow is put into the first and last bin, respectively. The bars are centered at the mid point between each pair of bins. |
histogramPlot0 :: (Num a, BarsPlotValue a) => Int -> [[Double]] -> PlotBars Double a -> PlotBars Double a Source
Generates a histogram plot where the min and max bin value is taken from the data set.
logHistogramPlot0 :: Int -> [[Double]] -> PlotBars Double Double -> PlotBars Double Double Source
Generates a histogram plot where the min and max bin value is taken from the data set.
Layouts
PixMap
pixMapLayout :: Int -> Int -> Layout Double Double -> Layout Double Double Source
A nice base layout for a pixMap, with a box around the pixmap with one pixel
padding, and a reversed y axis for matrix style coordinates.
Histogram
histogramLayout :: BarsPlotValue a => PlotBars Double a -> Layout Double a -> Layout Double a Source
The base layout for a histogram.
logHistogramLayout :: PlotBars Double Double -> Layout Double Double -> Layout Double Double Source
Base layout for a log-histogram.
histogramLayoutLR :: (BarsPlotValue a, PlotValue b) => PlotBars Double a -> LayoutLR Double a b -> LayoutLR Double a b Source
The base layout for a histogramLR.
Util
rgbaGradient :: (Double, Double, Double, Double) -> (Double, Double, Double, Double) -> Int -> [AlphaColour Double] Source
Returns an ordered list of colours useful for plotting.
Rendering
renderableToAspectWindow Source
:: Bool | Display Full Screen |
-> Int | Image width |
-> Int | Image height |
-> Renderable a | The Renderable |
-> IO () | Renders the renderable to the screen |
Displays a renderable in a GTK aspect window.