Safe Haskell | None |
---|---|
Language | Haskell2010 |
Various utilities for drawing axes with Cairo that will later be rendered using Graphics.DynamicGraph.RenderCairo
- blankCanvas :: Colour Double -> Double -> Double -> Render ()
- blankCanvasAlpha :: Colour Double -> Double -> Double -> Double -> Render ()
- drawAxes :: Double -> Double -> Double -> Double -> Double -> Double -> Colour Double -> Double -> Render ()
- gridXCoords :: Double -> Double -> Double -> Double -> Double -> [Double]
- gridYCoords :: Double -> Double -> Double -> Double -> Double -> [Double]
- xAxisLabels :: PangoContext -> Colour Double -> [String] -> [Double] -> Double -> Render ()
- yAxisLabels :: PangoContext -> Colour Double -> [String] -> [Double] -> Double -> Render ()
- xAxisGrid :: Colour Double -> Double -> [Double] -> Double -> Double -> [Double] -> Render ()
- yAxisGrid :: Colour Double -> Double -> [Double] -> Double -> Double -> [Double] -> Render ()
Documentation
Create a blank cairo canvas of the specified size and colour
Create a blank cairo canvas of the specified size and colour
:: 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
:: 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
:: 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
:: 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
:: 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