Safe Haskell | None |
---|
Calculate and render time axes
Documentation
timeAxis :: TimeSeq -> TimeSeq -> TimeLabelFn -> TimeLabelAlignment -> TimeSeq -> TimeLabelFn -> TimeLabelAlignment -> AxisFn LocalTimeSource
Create an AxisFn
to for a time axis. The first TimeSeq
sets the
minor ticks, and the ultimate range will be aligned to its elements.
The second TimeSeq
sets the labels and grid. The third TimeSeq
sets the second line of labels. The TimeLabelFn
is
used to format LocalTimes for labels. The values to be plotted
against this axis can be created with doubleFromLocalTime
.
autoTimeAxis :: AxisFn LocalTimeSource
Automatically choose a suitable time axis, based upon the time range
of data. The values to be plotted against this axis can be created
with doubleFromLocalTime
.