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

Safe HaskellNone

Graphics.Rendering.Chart.Plot.Lines

Description

Line plots

Synopsis

Documentation

data PlotLines x y Source

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

Constructors

PlotLines 

Fields

_plot_lines_title :: String
 
_plot_lines_style :: LineStyle
 
_plot_lines_values :: [[(x, y)]]

The lines to be plotted

_plot_lines_limit_values :: [[(Limit x, Limit y)]]

Additional lines to be plotted, specified using the Limit type to allow referencing the edges of the plot area.

Instances

defaultPlotLines :: PlotLines x ySource

Deprecated: Use the according Data.Default instance!

hlinePlot :: String -> LineStyle -> b -> Plot a bSource

Helper function to plot a single horizontal line.

vlinePlot :: String -> LineStyle -> a -> Plot a bSource

Helper function to plot a single vertical line.

plot_lines_values :: forall x y. Lens' (PlotLines x y) [[(x, y)]]Source

plot_lines_limit_values :: forall x y. Lens' (PlotLines x y) [[(Limit x, Limit y)]]Source