| 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 |
Plots.Axis.Render
Description
Low level module containing functions for rendering different types of axis.
Synopsis
- class RenderAxis c where
- renderAxis :: Axis c -> Diagram (BaseSpace c)
- r2AxisMain :: RenderOutcome t (Diagram V2) => t -> Axis V2 -> IO ()
- buildPlots :: BaseSpace c ~ v => Axis c -> [StyledPlot v]
Rendering axes
class RenderAxis c where Source #
Renderable axes.
Methods
renderAxis :: Axis c -> Diagram (BaseSpace c) Source #
Render an axis to a diagram. The size of the diagram is
determined by the axisSize.
Instances
| RenderAxis V3 Source # | |
Defined in Plots.Axis.Render | |
| RenderAxis V2 Source # | The |
Defined in Plots.Axis.Render | |
| RenderAxis Polar Source # | |
Defined in Plots.Axis.Render | |
r2AxisMain :: RenderOutcome t (Diagram V2) => t -> Axis V2 -> IO () Source #
mainWith specialised to a 2D Axis.
Low level
buildPlots :: BaseSpace c ~ v => Axis c -> [StyledPlot v] 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.