dynamic-graph-0.1.0.7: Draw and update graphs in real time with OpenGL

Safe HaskellNone
LanguageHaskell2010

Graphics.DynamicGraph.Axis

Description

Various utilities for drawing axes with Cairo that will later be rendered using Graphics.DynamicGraph.RenderCairo

Synopsis

Documentation

blankCanvas Source

Arguments

:: Colour Double

The colour

-> Double

Width

-> Double

Height

-> Render () 

Create a blank cairo canvas of the specified size and colour

blankCanvasAlpha Source

Arguments

:: Colour Double

The colour

-> Double

Transparency

-> Double

Width

-> Double

Height

-> Render () 

Create a blank cairo canvas of the specified size and colour

drawAxes Source

Arguments

:: Double

Width

-> Double

Height

-> Double

Top Margin

-> Double

Bottom Margin

-> Double

Left Margin

-> Double

Right Margin

-> Colour Double

Axis colour

-> Double

Axis width

-> Render () 

Draw a set of axes without any labels

gridXCoords Source

Arguments

:: Double

Width of graph

-> Double

X offset to start at

-> Double

Left margin

-> Double

Right margin

-> Double

Spacing between coordinates

-> [Double] 

Calculate the coordinates to draw the X axis grid at

gridYCoords Source

Arguments

:: Double

Height of graph

-> Double

Y offset to start at

-> Double

Top margin

-> Double

Bottom margin

-> Double

Spacing between coordinates

-> [Double] 

Calculate the coordinates to draw the Y axis grid at

xAxisLabels Source

Arguments

:: PangoContext

Pango context

-> Colour Double

Label colour

-> [String]

Grid labels

-> [Double]

X coordinates to draw labels at

-> Double

Y coordinate to draw labels at

-> Render () 

Draw X axis labels

yAxisLabels Source

Arguments

:: PangoContext

Pango context

-> Colour Double

Label colour

-> [String]

Grid label

-> [Double]

Y coordinates to draw labels at

-> Double

X coordinate to draw labels at

-> Render () 

Draw Y axis labels

xAxisGrid Source

Arguments

:: Colour Double

Grid colour

-> Double

Width of grid lines

-> [Double]

Grid line dashing

-> Double

Starting Y coordinate

-> Double

Ending Y coordinate

-> [Double]

Grid X coordinates

-> Render () 

Draw X axis grid

yAxisGrid Source

Arguments

:: Colour Double

Grid color

-> Double

Width of grid lines

-> [Double]

Grid line dashing

-> Double

Starting X coordinate

-> Double

Ending X coordinate

-> [Double]

Grid Y coordinates

-> Render () 

Draw Y axis grid