plot-0.1.4.2: A plotting library, exportable as eps/pdf/svg/png or renderable with gtk

Portabilityportable
Stabilityprovisional
Maintainerhaskell.vivian.mcphail <at> gmail <dot> com
Safe HaskellNone

Graphics.Rendering.Plot.Render

Contents

Description

Rendering Figures

Synopsis

Rendering

renderSource

Arguments

:: Figure ()

the figure to be rendered

-> (Int, Int)

(width,height)

-> Render ()

a Cairo operation

render a Figure

Access to FigureState

newFigureState :: Figure () -> IO FigureStateSource

create FigureState from a series of Figure actions

updateFigureState :: FigureState -> Figure () -> FigureStateSource

modify a FigureState with some new actions

renderFigureStateSource

Arguments

:: FigureState

the figure state

-> (Int, Int)

(width,height)

-> Render ()

a Cairo operation

render a FigureState

Outputting to file

data OutputType Source

output file type

Constructors

PNG 
PS 
PDF 
SVG 

writeFigureSource

Arguments

:: OutputType

output file type

-> FilePath

file path

-> (Int, Int)

(width,height)

-> Figure ()

the Figure rendering operation

-> IO () 

output the Figure

writeFigureStateSource

Arguments

:: OutputType

output file type

-> FilePath

file path

-> (Int, Int)

(width,height)

-> FigureState

a FigureState

-> IO () 

output the FigureState

Notes