Graphics.Rendering.Chart.Plot.Types
Description
Datatypes and functions common to the implementation of the various plot types.
- data Plot x y = Plot {
- plot_render_ :: PointMapFn x y -> CRender ()
- plot_legend_ :: [(String, Rect -> CRender ())]
- 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[aGoJ] y[aGoK]. T (Plot x[aGoJ] y[aGoK]) (PointMapFn x[aGoJ] y[aGoK] -> CRender ())
- plot_legend :: forall x[aGoJ] y[aGoK]. T (Plot x[aGoJ] y[aGoK]) [(String, Rect -> CRender ())]
- plot_all_points :: forall x[aGoJ] y[aGoK]. T (Plot x[aGoJ] y[aGoK]) ([x[aGoJ]], [y[aGoK]])
Documentation
Interface to control plotting on a 2D area.
Constructors
Plot | |
Fields
|
joinPlot :: Plot x y -> Plot x y -> Plot x ySource
Join any two plots together (they will share a legend).
A type class abstracting the conversion of a value to a Plot.
mapXY :: PointMapFn x y -> (x, y) -> PointSource
plot_render :: forall x[aGoJ] y[aGoK]. T (Plot x[aGoJ] y[aGoK]) (PointMapFn x[aGoJ] y[aGoK] -> CRender ())Source
plot_legend :: forall x[aGoJ] y[aGoK]. T (Plot x[aGoJ] y[aGoK]) [(String, Rect -> CRender ())]Source
plot_all_points :: forall x[aGoJ] y[aGoK]. T (Plot x[aGoJ] y[aGoK]) ([x[aGoJ]], [y[aGoK]])Source