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

Copyright(c) A. V. H. McPhail 2010
LicenseBSD3
Maintainerhaskell.vivian.mcphail <at> gmail <dot> com
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Graphics.Rendering.Plot.Render

Contents

Description

Rendering Figures

Synopsis

Rendering

render Source #

Arguments

:: Figure ()

the figure to be rendered

-> (Int, Int)

(width,height)

-> Render ()

a Cairo operation

render a Figure

Access to FigureState

newFigureState :: Figure () -> IO FigureState Source #

create FigureState from a series of Figure actions

updateFigureState :: FigureState -> Figure () -> FigureState Source #

modify a FigureState with some new actions

renderFigureState Source #

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 

writeFigure Source #

Arguments

:: OutputType

output file type

-> FilePath

file path

-> (Int, Int)

(width,height)

-> Figure ()

the Figure rendering operation

-> IO () 

output the Figure

writeFigureState Source #

Arguments

:: OutputType

output file type

-> FilePath

file path

-> (Int, Int)

(width,height)

-> FigureState

a FigureState

-> IO () 

output the FigureState

Notes