Chart-1.9.5: 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 Source #

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

Constructors

PlotIndex 

Fields

Instances

Instances details
PlotValue PlotIndex Source # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Enum PlotIndex Source # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Num PlotIndex Source # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Integral PlotIndex Source # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Real PlotIndex Source # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Methods

toRational :: PlotIndex -> Rational

Show PlotIndex Source # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Methods

showsPrec :: Int -> PlotIndex -> ShowS

show :: PlotIndex -> String

showList :: [PlotIndex] -> ShowS

Eq PlotIndex Source # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Methods

(==) :: PlotIndex -> PlotIndex -> Bool

(/=) :: PlotIndex -> PlotIndex -> Bool

Ord PlotIndex Source # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Methods

compare :: PlotIndex -> PlotIndex -> Ordering

(<) :: PlotIndex -> PlotIndex -> Bool

(<=) :: PlotIndex -> PlotIndex -> Bool

(>) :: PlotIndex -> PlotIndex -> Bool

(>=) :: PlotIndex -> PlotIndex -> Bool

max :: PlotIndex -> PlotIndex -> PlotIndex

min :: PlotIndex -> PlotIndex -> PlotIndex

autoIndexAxis' :: Integral i => Bool -> [String] -> AxisFn i Source #

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

autoIndexAxis :: Integral i => [String] -> AxisFn i Source #

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

Augment a list of values with index numbers for plotting.