Copyright | (c) Tim Docker 2010 2014 |
---|---|
License | BSD-style (see chart/COPYRIGHT) |
Safe Haskell | None |
Language | Haskell98 |
Calculate and render indexed axes
Synopsis
- newtype PlotIndex = PlotIndex {
- plotindex_i :: Int
- autoIndexAxis :: Integral i => [String] -> [i] -> AxisData i
- addIndexes :: [a] -> [(PlotIndex, a)]
Documentation
Type for capturing values plotted by index number (ie position in a list) rather than a numerical value.
Instances
Enum PlotIndex Source # | |
Defined in Graphics.Rendering.Chart.Axis.Indexed succ :: PlotIndex -> PlotIndex # pred :: PlotIndex -> PlotIndex # fromEnum :: PlotIndex -> Int # enumFrom :: PlotIndex -> [PlotIndex] # enumFromThen :: PlotIndex -> PlotIndex -> [PlotIndex] # enumFromTo :: PlotIndex -> PlotIndex -> [PlotIndex] # enumFromThenTo :: PlotIndex -> PlotIndex -> PlotIndex -> [PlotIndex] # | |
Eq PlotIndex Source # | |
Integral PlotIndex Source # | |
Defined in Graphics.Rendering.Chart.Axis.Indexed | |
Num PlotIndex Source # | |
Defined in Graphics.Rendering.Chart.Axis.Indexed | |
Ord PlotIndex Source # | |
Defined in Graphics.Rendering.Chart.Axis.Indexed | |
Real PlotIndex Source # | |
Defined in Graphics.Rendering.Chart.Axis.Indexed toRational :: PlotIndex -> Rational # | |
Show PlotIndex Source # | |
PlotValue PlotIndex Source # | |
autoIndexAxis :: Integral i => [String] -> [i] -> AxisData i Source #
Create an axis for values indexed by position. The list of strings are the labels to be used.
addIndexes :: [a] -> [(PlotIndex, a)] Source #
Augment a list of values with index numbers for plotting.