Chart-0.7: A library for generating 2D Charts and Plots

Safe HaskellNone

Graphics.Rendering.Chart.Plot

Description

 

Synopsis

Documentation

data Plot Source

Interface to control plotting on a 2D area.

Constructors

Plot 

Fields

plot_render :: PointMapFn -> CRender ()

Given the mapping between model space coordinates and device coordinates, render this plot into a chart.

plot_render_legend :: Rect -> CRender ()

Render a small sample of this plot into the given rectangle. This is for used to generate a the legend a chart.

plot_all_points :: [Point]

All of the model space coordinates to be plotted. These are used to autoscale the axes where necessary.

class ToPlot a whereSource

a type class abstracting the conversion of a value to a Plot.

Methods

toPlot :: a -> PlotSource

data PlotPoints Source

Value defining a series of datapoints, and a style in which to render them

Instances

data PlotErrBars Source

Value defining a series of error intervals, and a style in which to render them

Instances

data PlotLines Source

Value defining a series of (possibly disjointed) lines, and a style in which to render them

Instances

data PlotFillBetween Source

Value specifying a plot filling the area between two sets of Y coordinates, given common X coordinates.

data ErrPoint Source

Value for holding a point with associated error bounds for each axis.

Constructors

ErrPoint 

Fields

ep_x :: Double
 
ep_y :: Double
 
ep_dx :: Double
 
ep_dy :: Double
 

Instances