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

Copyright | (c) Tim Docker 2006 2014
License | BSD-style (see chart/COPYRIGHT)
Safe Haskell | None
Language | Haskell98

Graphics.Rendering.Chart.Plot.Lines

Description

Line plots

Synopsis

- data PlotLines x y = PlotLines {
  - _plot_lines_title :: String
  - _plot_lines_style :: LineStyle
  - _plot_lines_values :: [[(x, y)]]
  - _plot_lines_limit_values :: [[(Limit x, Limit y)]]
  }
- defaultPlotLineStyle :: LineStyle
- hlinePlot :: String -> LineStyle -> b -> Plot a b
- vlinePlot :: String -> LineStyle -> a -> Plot a b
- plot_lines_title :: forall x y f. Functor f => (String -> f String) -> PlotLines x y -> f (PlotLines x y)
- plot_lines_style :: forall x y f. Functor f => (LineStyle -> f LineStyle) -> PlotLines x y -> f (PlotLines x y)
- plot_lines_values :: forall x y f. Functor f => ([[(x, y)]] -> f [[(x, y)]]) -> PlotLines x y -> f (PlotLines x y)
- plot_lines_limit_values :: forall x y f. Functor f => ([[(Limit x, Limit y)]] -> f [[(Limit x, Limit y)]]) -> PlotLines x y -> f (PlotLines x y)

# Documentation

data PlotLines x y #

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

Instances details

ToPlot PlotLines # |
Instance details Defined in Graphics.Rendering.Chart.Plot.Lines Methods toPlot :: PlotLines x y -> Plot x y #
Default (PlotLines x y) # |
Instance details Defined in Graphics.Rendering.Chart.Plot.Lines Methods def :: PlotLines x y #

defaultPlotLineStyle :: LineStyle #

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

Helper function to plot a single horizontal line.

vlinePlot :: String -> LineStyle -> a -> Plot a b #

Helper function to plot a single vertical line.

plot_lines_title :: forall x y f. Functor f => (String -> f String) -> PlotLines x y -> f (PlotLines x y) #

plot_lines_style :: forall x y f. Functor f => (LineStyle -> f LineStyle) -> PlotLines x y -> f (PlotLines x y) #

plot_lines_values :: forall x y f. Functor f => ([[(x, y)]] -> f [[(x, y)]]) -> PlotLines x y -> f (PlotLines x y) #

plot_lines_limit_values :: forall x y f. Functor f => ([[(Limit x, Limit y)]] -> f [[(Limit x, Limit y)]]) -> PlotLines x y -> f (PlotLines x y) #