Copyright | (c) Tim Docker 2006, 2014 |
---|---|
License | BSD-style (see chart/COPYRIGHT) |
Safe Haskell | None |
Language | Haskell98 |
Datatypes and functions common to the implementation of the various plot types.
- data Plot x y = Plot {
- _plot_render :: PointMapFn x y -> ChartBackend ()
- _plot_legend :: [(String, Rect -> ChartBackend ())]
- _plot_all_points :: ([x], [y])
- joinPlot :: Plot x y -> Plot x y -> Plot x y
- class ToPlot a where
- mapXY :: PointMapFn x y -> (x, y) -> Point
- plot_render :: forall x y. Lens' (Plot x y) (PointMapFn x y -> ChartBackend ())
- plot_legend :: forall x y. Lens' (Plot x y) [(String, Rect -> ChartBackend ())]
- plot_all_points :: forall x y. Lens' (Plot x y) ([x], [y])
Documentation
Interface to control plotting on a 2D area.
Plot | |
|
joinPlot :: Plot x y -> Plot x y -> Plot x y Source
Join any two plots together (they will share a legend).
A type class abstracting the conversion of a value to a Plot.
ToPlot Plot | |
ToPlot PlotHidden | |
ToPlot PlotLines | |
ToPlot PlotPoints | |
ToPlot PlotFillBetween | |
ToPlot PlotErrBars | |
ToPlot PlotCandle | |
ToPlot PlotAnnotation | |
PlotValue z => ToPlot (AreaSpots z) | |
(PlotValue z, PlotValue t, Show t) => ToPlot (AreaSpots4D z t) |
mapXY :: PointMapFn x y -> (x, y) -> Point Source
plot_render :: forall x y. Lens' (Plot x y) (PointMapFn x y -> ChartBackend ()) Source
plot_legend :: forall x y. Lens' (Plot x y) [(String, Rect -> ChartBackend ())] Source
plot_all_points :: forall x y. Lens' (Plot x y) ([x], [y]) Source