Chart-1.9.3: 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.Floating

Contents

Description

Calculate and render floating value axes including doubles with linear, log, and percentage scaling.

Synopsis

Documentation

newtype Percent #

A wrapper class for doubles used to indicate they are to be plotted against a percentage axis.

Constructors

Percent 

Fields

Instances
Eq Percent # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

(==) :: Percent -> Percent -> Bool #

(/=) :: Percent -> Percent -> Bool #

Floating Percent # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Fractional Percent # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Num Percent # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Ord Percent # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Real Percent # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

RealFloat Percent # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

RealFrac Percent # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

properFraction :: Integral b => Percent -> (b, Percent) #

truncate :: Integral b => Percent -> b #

round :: Integral b => Percent -> b #

ceiling :: Integral b => Percent -> b #

floor :: Integral b => Percent -> b #

Show Percent # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

PlotValue Percent # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

data LinearAxisParams a #

Constructors

LinearAxisParams 

Fields

Instances
(Show a, RealFloat a) => Default (LinearAxisParams a) # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

def :: LinearAxisParams a #

newtype LogValue #

A wrapper class for doubles used to indicate they are to be plotted against a log axis.

Constructors

LogValue Double 
Instances
Eq LogValue # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Floating LogValue # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Fractional LogValue # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Num LogValue # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Ord LogValue # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Real LogValue # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

RealFloat LogValue # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

RealFrac LogValue # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

properFraction :: Integral b => LogValue -> (b, LogValue) #

truncate :: Integral b => LogValue -> b #

round :: Integral b => LogValue -> b #

ceiling :: Integral b => LogValue -> b #

floor :: Integral b => LogValue -> b #

Show LogValue # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

PlotValue LogValue # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

data LogAxisParams a #

Constructors

LogAxisParams 

Fields

Instances
(Show a, RealFloat a) => Default (LogAxisParams a) # 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

def :: LogAxisParams a #

scaledAxis :: RealFloat a => LinearAxisParams a -> (a, a) -> AxisFn a #

Generate a linear axis with the specified bounds

autoScaledAxis :: RealFloat a => LinearAxisParams a -> AxisFn a #

Generate a linear axis automatically, scaled appropriately for the input data.

autoScaledLogAxis :: RealFloat a => LogAxisParams a -> AxisFn a #

Generate a log axis automatically, scaled appropriate for the input data.

autoSteps :: Int -> [Double] -> [Double] #

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 a. Lens (LinearAxisParams a) (LinearAxisParams a) ([a] -> [String]) ([a] -> [String]) #

loga_labelf :: forall a a. Iso (LogAxisParams a) (LogAxisParams a) ([a] -> [String]) ([a] -> [String]) #

Orphan instances

PlotValue Double # 
Instance details

PlotValue Float # 
Instance details