Copyright | (C) 2016 Christopher Chalmers |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Christopher Chalmers |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Low level module containing functions for rendering different types of axis.
- class RenderAxis b v n where
- r2AxisMain :: (Parseable (MainOpts (QDiagram b V2 Double Any)), Mainable (Axis b V2 Double)) => Axis b V2 Double -> IO ()
- buildPlots :: BaseSpace c ~ v => Axis b c n -> [StyledPlot b v n]
Rendering axes
class RenderAxis b v n where Source #
Renderable axes.
renderAxis :: Axis b v n -> QDiagram b (BaseSpace v) n Any Source #
Render an axis to a diagram. The size of the diagram is
determined by the axisSize
.
(TypeableFloat n, Renderable (Path V2 n) b) => RenderAxis b Polar n Source # | |
(TypeableFloat n, Renderable (Path V2 n) b) => RenderAxis b V2 n Source # | The |
r2AxisMain :: (Parseable (MainOpts (QDiagram b V2 Double Any)), Mainable (Axis b V2 Double)) => Axis b V2 Double -> IO () Source #
mainWith
specialised to a 2D Axis.
Low level
buildPlots :: BaseSpace c ~ v => Axis b c n -> [StyledPlot b v n] Source #
Build a list of styled plots from the axis, ready to be rendered.
This takes into account any AxisStyle
changes and applies the
finalPlots
modifications.
The StyledPlots
can be rendered with renderStyledPlot
and the
legend entries can be obtained with styledPlotLegends
. This is
what renderAxis
can uses internally but might be useful for
debugging or generating your own legend.