Graphics.Rendering.Chart.Plot
Description
Definitions of various types of Plots we can put on a 2D Chart.
Note that template haskell is used to derive accessor functions
(see Data.Accessor
) for each field of the following data types:
These accessors are not shown in this API documentation. They have the same name as the field, but with the trailing underscore dropped. Hence for data field f_::F in type D, they have type
f :: Data.Accessor.Accessor D F
- data Plot x y = Plot {
- plot_render_ :: PointMapFn x y -> CRender ()
- plot_render_legend_ :: Rect -> CRender ()
- plot_all_points_ :: [(x, y)]
- class ToPlot a where
- data PlotPoints x y = PlotPoints {
- plot_points_style_ :: CairoPointStyle
- plot_points_values_ :: [(x, y)]
- data PlotErrBars x y = PlotErrBars {}
- data PlotLines x y = PlotLines {
- plot_lines_style_ :: CairoLineStyle
- plot_lines_values_ :: [[(x, y)]]
- data PlotFillBetween x y = PlotFillBetween {
- plot_fillbetween_style_ :: CairoFillStyle
- plot_fillbetween_values_ :: [(x, (y, y))]
- data ErrPoint x y = ErrPoint {}
- symErrPoint :: (Num a, Num a1) => a -> a1 -> a -> a1 -> ErrPoint a a1
- defaultPlotLineStyle :: CairoLineStyle
- defaultPlotPoints :: PlotPoints x y
- defaultPlotErrBars :: PlotErrBars x y
- defaultPlotFillBetween :: PlotFillBetween x y
- defaultPlotLines :: PlotLines x y
- plot_lines_style :: forall x[aone] y[aonf]. T (PlotLines x[aone] y[aonf]) CairoLineStyle
- plot_lines_values :: forall x[aone] y[aonf]. T (PlotLines x[aone] y[aonf]) ([] ([] ((,) x[aone] y[aonf])))
- plot_render :: forall x[aonj] y[aonk]. T (Plot x[aonj] y[aonk]) (PointMapFn x[aonj] y[aonk] -> CRender ())
- plot_render_legend :: forall x[aonj] y[aonk]. T (Plot x[aonj] y[aonk]) (Rect -> CRender ())
- plot_all_points :: forall x[aonj] y[aonk]. T (Plot x[aonj] y[aonk]) ([] ((,) x[aonj] y[aonk]))
- plot_points_style :: forall x[aonc] y[aond]. T (PlotPoints x[aonc] y[aond]) CairoPointStyle
- plot_points_values :: forall x[aonc] y[aond]. T (PlotPoints x[aonc] y[aond]) ([] ((,) x[aonc] y[aond]))
- plot_fillbetween_style :: forall x[aona] y[aonb]. T (PlotFillBetween x[aona] y[aonb]) CairoFillStyle
- plot_fillbetween_values :: forall x[aona] y[aonb]. T (PlotFillBetween x[aona] y[aonb]) ([] ((,) x[aona] ((,) y[aonb] y[aonb])))
- plot_errbars_line_style :: forall x[aon5] y[aon6]. T (PlotErrBars x[aon5] y[aon6]) CairoLineStyle
- plot_errbars_tick_length :: forall x[aon5] y[aon6]. T (PlotErrBars x[aon5] y[aon6]) Double
- plot_errbars_overhang :: forall x[aon5] y[aon6]. T (PlotErrBars x[aon5] y[aon6]) Double
- plot_errbars_values :: forall x[aon5] y[aon6]. T (PlotErrBars x[aon5] y[aon6]) ([] (ErrPoint x[aon5] y[aon6]))
Documentation
Interface to control plotting on a 2D area.
Constructors
Plot | |
Fields
|
a type class abstracting the conversion of a value to a Plot.
data PlotPoints x y Source
Value defining a series of datapoints, and a style in which to render them
Constructors
PlotPoints | |
Fields
|
Instances
data PlotErrBars x y Source
When the error is symetric, we can simply pass in dx for the error
Value defining a series of error intervals, and a style in which to render them
Constructors
PlotErrBars | |
Instances
Value defining a series of (possibly disjointed) lines, and a style in which to render them
Constructors
PlotLines | |
Fields
|
data PlotFillBetween x y Source
Value specifying a plot filling the area between two sets of Y coordinates, given common X coordinates.
Constructors
PlotFillBetween | |
Fields
|
Instances
symErrPoint :: (Num a, Num a1) => a -> a1 -> a -> a1 -> ErrPoint a a1Source
defaultPlotLines :: PlotLines x ySource
plot_lines_style :: forall x[aone] y[aonf]. T (PlotLines x[aone] y[aonf]) CairoLineStyleSource
plot_lines_values :: forall x[aone] y[aonf]. T (PlotLines x[aone] y[aonf]) ([] ([] ((,) x[aone] y[aonf])))Source
plot_render :: forall x[aonj] y[aonk]. T (Plot x[aonj] y[aonk]) (PointMapFn x[aonj] y[aonk] -> CRender ())Source
plot_all_points :: forall x[aonj] y[aonk]. T (Plot x[aonj] y[aonk]) ([] ((,) x[aonj] y[aonk]))Source
plot_points_style :: forall x[aonc] y[aond]. T (PlotPoints x[aonc] y[aond]) CairoPointStyleSource
plot_points_values :: forall x[aonc] y[aond]. T (PlotPoints x[aonc] y[aond]) ([] ((,) x[aonc] y[aond]))Source
plot_fillbetween_style :: forall x[aona] y[aonb]. T (PlotFillBetween x[aona] y[aonb]) CairoFillStyleSource
plot_fillbetween_values :: forall x[aona] y[aonb]. T (PlotFillBetween x[aona] y[aonb]) ([] ((,) x[aona] ((,) y[aonb] y[aonb])))Source
plot_errbars_line_style :: forall x[aon5] y[aon6]. T (PlotErrBars x[aon5] y[aon6]) CairoLineStyleSource
plot_errbars_tick_length :: forall x[aon5] y[aon6]. T (PlotErrBars x[aon5] y[aon6]) DoubleSource
plot_errbars_overhang :: forall x[aon5] y[aon6]. T (PlotErrBars x[aon5] y[aon6]) DoubleSource
plot_errbars_values :: forall x[aon5] y[aon6]. T (PlotErrBars x[aon5] y[aon6]) ([] (ErrPoint x[aon5] y[aon6]))Source