Chart-0.5: 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 -> Render ()

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

plot_render_legend :: Rect -> Render ()

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 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.