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

Goal.Core.Plot

Synopsis

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

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.

Arguments

 :: Int Number of bins -> Double Min range -> Double Max range -> [[Double]] Data set -> PlotBars Double Double Plot -> PlotBars Double Double New Plot

Generates a histogram plot where the min and max bin value is taken from the data set.

Layouts

PixMap

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

The base layout for a histogram.

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

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.