SBench-0.2.0: A benchmark suite for runtime and heap measurements over a series of inputs.

Safe HaskellNone

Test.SBench.Plot.Gnuplot

Description

Interface functions to the gnuplot package for generating plots.

Synopsis

Documentation

series2plotSource

Arguments

:: (C a, C a, C b, C b) 
=> Title

Title of the graph.

-> [(a, b)]

Data to plot.

-> T a b

The plot.

series2scaledPlotSource

Arguments

:: (C c, C c, C d, C d) 
=> (a -> c)

scale x-axis

-> (b -> d)

scale y-axis

-> Title

Title of the graph.

-> [(a, b)]

Data to plot.

-> T c d

The plot.

series2plotWithSource

Arguments

:: (C a, C a, C b, C b) 
=> [T -> T]

Line specification, see Graphics.Gnuplot.LineSpecification.

-> [(a, b)]

Data to plot

-> T a b

the plot.

series2scaledPlotWithSource

Arguments

:: (C c, C c, C d, C d) 
=> [T -> T]

Line specification, see Graphics.Gnuplot.LineSpecification.

-> (a -> c)

scale x-axis

-> (b -> d)

scale y-axis

-> [(a, b)]

Data to plot

-> T c d

the plot.

series2plotWithLinestyleSource

Arguments

:: (C a, C a, C b, C b) 
=> Int

Linestyle. See gnuplot manual.

-> Title

Title of the graph.

-> [(a, b)]

Data to plot

-> T a b

the plot.

series2scaledPlotWithLinestyleSource

Arguments

:: (C c, C c, C d, C d) 
=> Int

Linestyle. See gnuplot manual.

-> (a -> c)

scale x-axis

-> (b -> d)

scale y-axis

-> Title

Title of the graph.

-> [(a, b)]

Data to plot

-> T c d

the plot.

sbench2scaledPlotSource

Arguments

:: (Double -> Double)

scale x-axis

-> (Double -> Double)

scale y-axis

-> FilePath

data file

-> IO (T Double Double)

produced plot

sbench2plotWithLinestyleSource

Arguments

:: Int

Linestyle. See gnuplot manual.

-> FilePath

data file

-> IO (T Double Double)

produced plot

sbench2scaledPlotWithLinestyleSource

Arguments

:: Int

Linestyle. See gnuplot manual.

-> (Double -> Double)

scale x-axis

-> (Double -> Double)

scale y-axis

-> FilePath

data file

-> IO (T Double Double)

produced plot

sbench2plotWithSource

Arguments

:: [T -> T]

Line specifications. See Graphics.Gnuplot.LineSpecification

-> FilePath

data file

-> IO (T Double Double)

produced plot

sbench2scaledPlotWithSource

Arguments

:: [T -> T]

Line specifications. See Graphics.Gnuplot.LineSpecification

-> (Double -> Double)

scale x-axis

-> (Double -> Double)

scale y-axis

-> FilePath

data file

-> IO (T Double Double)

produced plot

toDiagram :: (C a, C b, C a, C b) => [Char] -> [T -> T] -> [T (T a b) -> T (T a b)] -> [T a b] -> IO FilePathSource

Compared to toDiagramWith, the output terminal is fixed to Graphics.Gnuplot.Terminal.PostScript and the resulting .eps file is transformed to a .pdf via a call to epstopdf.

The parameters are as follows [name] Choose the output terminal. See Graphics.Gnuplot.Terminal [topts] Frame options, e.g. title. See Graphics.Gnuplot.Frame.OptionSet [opts] List of plots to be shown in the diagram. [plots] List of plots to be shown in the diagram.

toDiagramWith :: (C a, C b, C a, C b, C terminal) => terminal -> [T (T a b) -> T (T a b)] -> [T a b] -> IO ExitCodeSource

Produces a diagram with several plots inside.

The parameters are as follows [terminal] Choose the output terminal. See Graphics.Gnuplot.Terminal [opts] Frame options, e.g. title. See Graphics.Gnuplot.Frame.OptionSet [plots] List of plots to be shown in the diagram.