Safe Haskell | None |
---|
Calculate and render indexed axes
- 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.
autoIndexAxis :: Integral i => [String] -> [i] -> AxisData iSource
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.