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

Copyright(c) Tim Docker 2010 2014
LicenseBSD-style (see chart/COPYRIGHT)
Safe HaskellNone
LanguageHaskell98

Graphics.Rendering.Chart.Axis.Indexed

Description

Calculate and render indexed axes

Synopsis

Documentation

newtype PlotIndex #

Type for capturing values plotted by index number (ie position in a list) rather than a numerical value.

Constructors

PlotIndex 

Fields

Instances
Enum PlotIndex # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Eq PlotIndex # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Integral PlotIndex # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Num PlotIndex # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Ord PlotIndex # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Real PlotIndex # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Show PlotIndex # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

PlotValue PlotIndex # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

autoIndexAxis :: Integral i => [String] -> [i] -> AxisData i #

Create an axis for values indexed by position. The list of strings are the labels to be used.

addIndexes :: [a] -> [(PlotIndex, a)] #

Augment a list of values with index numbers for plotting.