Graphics.Rendering.Chart.Axis.Floating
Description
Calculate and render floating value axes including doubles with linear, log, and percentage scaling.
- newtype Percent = Percent {}
- data LinearAxisParams a = LinearAxisParams {
- la_labelf_ :: a -> String
- la_nLabels_ :: Int
- la_nTicks_ :: Int
- newtype LogValue = LogValue Double
- data LogAxisParams a = LogAxisParams {
- loga_labelf_ :: a -> String
- defaultLinearAxis :: Show a => LinearAxisParams a
- defaultLogAxis :: Show a => LogAxisParams a
- autoScaledAxis :: RealFloat a => LinearAxisParams a -> AxisFn a
- autoScaledLogAxis :: RealFloat a => LogAxisParams a -> AxisFn a
- autoSteps :: Int -> [Double] -> [Double]
- la_labelf :: forall a. T (LinearAxisParams a) (a -> String)
- la_nLabels :: forall a. T (LinearAxisParams a) Int
- la_nTicks :: forall a. T (LinearAxisParams a) Int
- loga_labelf :: forall a. T (LogAxisParams a) (a -> String)
Documentation
A wrapper class for doubles used to indicate they are to be plotted against a percentage axis.
data LinearAxisParams a Source
Constructors
LinearAxisParams | |
Fields
|
A wrapper class for doubles used to indicate they are to be plotted against a log axis.
data LogAxisParams a Source
Constructors
LogAxisParams | |
Fields
|
defaultLinearAxis :: Show a => LinearAxisParams aSource
defaultLogAxis :: Show a => LogAxisParams aSource
autoScaledAxis :: RealFloat a => LinearAxisParams a -> AxisFn aSource
Generate a linear axis automatically, scaled appropriately for the input data.
autoScaledLogAxis :: RealFloat a => LogAxisParams a -> AxisFn aSource
Generate a log axis automatically, scaled appropriate for the input data.
autoSteps :: Int -> [Double] -> [Double]Source
Given a target number of values, and a list of input points, find evenly spaced values from the set {1*X, 2*X, 2.5*X, 5*X} (where X is some power of ten) that evenly cover the input points.
la_labelf :: forall a. T (LinearAxisParams a) (a -> String)Source
la_nLabels :: forall a. T (LinearAxisParams a) IntSource
la_nTicks :: forall a. T (LinearAxisParams a) IntSource
loga_labelf :: forall a. T (LogAxisParams a) (a -> String)Source