/usr/share/doc/libghc-chart-doc/html/Graphics-Rendering-Chart-Axis-Floating.html is in libghc-chart-doc 0.15-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.Rendering.Chart.Axis.Floating</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-Rendering-Chart-Axis-Floating.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-Rendering-Chart-Axis-Floating.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">Chart-0.15: A library for generating 2D Charts and Plots</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Graphics.Rendering.Chart.Axis.Floating</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Calculate and render floating value axes
including doubles with linear, log, and percentage scaling.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">newtype</span> <a href="#t:Percent">Percent</a> = <a href="#v:Percent">Percent</a> {<ul class="subs"><li><a href="#v:unPercent">unPercent</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:LinearAxisParams">LinearAxisParams</a> a = <a href="#v:LinearAxisParams">LinearAxisParams</a> {<ul class="subs"><li><a href="#v:la_labelf_">la_labelf_</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:la_nLabels_">la_nLabels_</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:la_nTicks_">la_nTicks_</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li></ul>}</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:LogValue">LogValue</a> = <a href="#v:LogValue">LogValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:LogAxisParams">LogAxisParams</a> a = <a href="#v:LogAxisParams">LogAxisParams</a> {<ul class="subs"><li><a href="#v:loga_labelf_">loga_labelf_</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li></ul>}</li><li class="src short"><a href="#v:defaultLinearAxis">defaultLinearAxis</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a) => <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LinearAxisParams">LinearAxisParams</a> a</li><li class="src short"><a href="#v:defaultLogAxis">defaultLogAxis</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a) => <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogAxisParams">LogAxisParams</a> a</li><li class="src short"><a href="#v:autoScaledAxis">autoScaledAxis</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LinearAxisParams">LinearAxisParams</a> a -> <a href="Graphics-Rendering-Chart-Axis-Types.html#t:AxisFn">AxisFn</a> a</li><li class="src short"><a href="#v:autoScaledLogAxis">autoScaledLogAxis</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogAxisParams">LogAxisParams</a> a -> <a href="Graphics-Rendering-Chart-Axis-Types.html#t:AxisFn">AxisFn</a> a</li><li class="src short"><a href="#v:autoSteps">autoSteps</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>] -> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>]</li><li class="src short"><a href="#v:la_labelf">la_labelf</a> :: <span class="keyword">forall</span> a. <a href="/usr/share/doc/libghc-data-accessor-doc/html/Data-Accessor-Basic.html#t:T">T</a> (<a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LinearAxisParams">LinearAxisParams</a> a) (a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:la_nLabels">la_nLabels</a> :: <span class="keyword">forall</span> a. <a href="/usr/share/doc/libghc-data-accessor-doc/html/Data-Accessor-Basic.html#t:T">T</a> (<a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LinearAxisParams">LinearAxisParams</a> a) <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:la_nTicks">la_nTicks</a> :: <span class="keyword">forall</span> a. <a href="/usr/share/doc/libghc-data-accessor-doc/html/Data-Accessor-Basic.html#t:T">T</a> (<a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LinearAxisParams">LinearAxisParams</a> a) <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:loga_labelf">loga_labelf</a> :: <span class="keyword">forall</span> a. <a href="/usr/share/doc/libghc-data-accessor-doc/html/Data-Accessor-Basic.html#t:T">T</a> (<a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogAxisParams">LogAxisParams</a> a) (a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:Percent" class="def">Percent</a> <a href="src/Graphics-Rendering-Chart-Axis-Floating.html#Percent" class="link">Source</a></p><div class="doc"><p>A wrapper class for doubles used to indicate they are to
be plotted against a percentage axis.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Percent" class="def">Percent</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:unPercent" class="def">unPercent</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Percent" class="caption collapser" onclick="toggleSection('i:Percent')">Instances</p><div id="section.i:Percent" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:Percent">Percent</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Floating">Floating</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:Percent">Percent</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Fractional">Fractional</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:Percent">Percent</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Num">Num</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:Percent">Percent</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:Percent">Percent</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Real">Real</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:Percent">Percent</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:Percent">Percent</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFrac">RealFrac</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:Percent">Percent</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:Percent">Percent</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-Chart-Axis-Types.html#t:PlotValue">PlotValue</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:Percent">Percent</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:LinearAxisParams" class="def">LinearAxisParams</a> a <a href="src/Graphics-Rendering-Chart-Axis-Floating.html#LinearAxisParams" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:LinearAxisParams" class="def">LinearAxisParams</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:la_labelf_" class="def">la_labelf_</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>The function used to show the axes labels.
</p></dd><dt class="src"><a name="v:la_nLabels_" class="def">la_nLabels_</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc"><p>The target number of labels to be shown.
</p></dd><dt class="src"><a name="v:la_nTicks_" class="def">la_nTicks_</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc"><p>The target number of ticks to be shown.
</p></dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:LogValue" class="def">LogValue</a> <a href="src/Graphics-Rendering-Chart-Axis-Floating.html#LogValue" class="link">Source</a></p><div class="doc"><p>A wrapper class for doubles used to indicate they are to
be plotted against a log axis.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:LogValue" class="def">LogValue</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:LogValue" class="caption collapser" onclick="toggleSection('i:LogValue')">Instances</p><div id="section.i:LogValue" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogValue">LogValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Floating">Floating</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogValue">LogValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Fractional">Fractional</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogValue">LogValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Num">Num</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogValue">LogValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogValue">LogValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Real">Real</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogValue">LogValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogValue">LogValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFrac">RealFrac</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogValue">LogValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogValue">LogValue</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-Rendering-Chart-Axis-Types.html#t:PlotValue">PlotValue</a> <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogValue">LogValue</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:LogAxisParams" class="def">LogAxisParams</a> a <a href="src/Graphics-Rendering-Chart-Axis-Floating.html#LogAxisParams" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:LogAxisParams" class="def">LogAxisParams</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:loga_labelf_" class="def">loga_labelf_</a> :: a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>The function used to show the axes labels.
</p></dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><a name="v:defaultLinearAxis" class="def">defaultLinearAxis</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a) => <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LinearAxisParams">LinearAxisParams</a> a<a href="src/Graphics-Rendering-Chart-Axis-Floating.html#defaultLinearAxis" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:defaultLogAxis" class="def">defaultLogAxis</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a) => <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogAxisParams">LogAxisParams</a> a<a href="src/Graphics-Rendering-Chart-Axis-Floating.html#defaultLogAxis" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:autoScaledAxis" class="def">autoScaledAxis</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LinearAxisParams">LinearAxisParams</a> a -> <a href="Graphics-Rendering-Chart-Axis-Types.html#t:AxisFn">AxisFn</a> a<a href="src/Graphics-Rendering-Chart-Axis-Floating.html#autoScaledAxis" class="link">Source</a></p><div class="doc"><p>Generate a linear axis automatically, scaled appropriately for the
input data.
</p></div></div><div class="top"><p class="src"><a name="v:autoScaledLogAxis" class="def">autoScaledLogAxis</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogAxisParams">LogAxisParams</a> a -> <a href="Graphics-Rendering-Chart-Axis-Types.html#t:AxisFn">AxisFn</a> a<a href="src/Graphics-Rendering-Chart-Axis-Floating.html#autoScaledLogAxis" class="link">Source</a></p><div class="doc"><p>Generate a log axis automatically, scaled appropriate for the
input data.
</p></div></div><div class="top"><p class="src"><a name="v:autoSteps" class="def">autoSteps</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>] -> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>]<a href="src/Graphics-Rendering-Chart-Axis-Floating.html#autoSteps" class="link">Source</a></p><div class="doc"><p>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.
</p></div></div><div class="top"><p class="src"><a name="v:la_labelf" class="def">la_labelf</a> :: <span class="keyword">forall</span> a. <a href="/usr/share/doc/libghc-data-accessor-doc/html/Data-Accessor-Basic.html#t:T">T</a> (<a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LinearAxisParams">LinearAxisParams</a> a) (a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>)<a href="src/Graphics-Rendering-Chart-Axis-Floating.html#la_labelf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:la_nLabels" class="def">la_nLabels</a> :: <span class="keyword">forall</span> a. <a href="/usr/share/doc/libghc-data-accessor-doc/html/Data-Accessor-Basic.html#t:T">T</a> (<a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LinearAxisParams">LinearAxisParams</a> a) <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-Rendering-Chart-Axis-Floating.html#la_nLabels" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:la_nTicks" class="def">la_nTicks</a> :: <span class="keyword">forall</span> a. <a href="/usr/share/doc/libghc-data-accessor-doc/html/Data-Accessor-Basic.html#t:T">T</a> (<a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LinearAxisParams">LinearAxisParams</a> a) <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-Rendering-Chart-Axis-Floating.html#la_nTicks" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:loga_labelf" class="def">loga_labelf</a> :: <span class="keyword">forall</span> a. <a href="/usr/share/doc/libghc-data-accessor-doc/html/Data-Accessor-Basic.html#t:T">T</a> (<a href="Graphics-Rendering-Chart-Axis-Floating.html#t:LogAxisParams">LogAxisParams</a> a) (a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>)<a href="src/Graphics-Rendering-Chart-Axis-Floating.html#loga_labelf" class="link">Source</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>
|