goal-core-0.1: Core imports for Geometric Optimization Libraries.

Safe HaskellNone
LanguageHaskell2010

Goal.Core.Plot

Contents

Synopsis

Module Exports

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

histogramPlot Source

Arguments

:: (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.

logHistogramPlot Source

Arguments

:: Int

Number of bins

-> Double

Min range

-> Double

Max range

-> [[Double]]

Data set

-> PlotBars Double Double

Plot

-> PlotBars Double Double

New Plot

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.

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

Arguments

:: 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.