| Copyright | (C) 2016 Christopher Chalmers |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Christopher Chalmers |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Plots.Axis.Render
Description
Low level module containing functions for rendering different types of axis.
Rendering axes
class RenderAxis b v n where Source #
Renderable axes.
Methods
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.
Instances
| (TypeableFloat n, Renderable (Path V2 n) b) => RenderAxis b V2 n Source # | The |
Defined in Plots.Axis.Render | |
| (TypeableFloat n, Renderable (Path V2 n) b) => RenderAxis b Polar n Source # | |
Defined in Plots.Axis.Render | |
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.