Copyright | (C) 2016 Christopher Chalmers |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Christopher Chalmers |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
The title used for a plot.
Documentation
Instances
Default (Title V3) Source # | |
Defined in Plots.Axis.Title | |
Default (Title V2) Source # | |
Defined in Plots.Axis.Title | |
HasPlacement (Title v) Source # | |
HasGap (Title v) Source # | |
HasVisibility (Title v) Source # | |
HasTitle (Title v) Source # | |
Defined in Plots.Axis.Title title :: Lens' (Title v) (Title (V (Title v))) Source # titleText :: Lens' (Title v) String Source # titleStyle :: Lens' (Title v) (Style (V (Title v)) Double) Source # titlePlacement :: Lens' (Title v) Placement Source # titleTextFunction :: Lens' (Title v) (TextAlignment Double -> String -> Diagram (V (Title v))) Source # titleAlignment :: Lens' (Title v) (TextAlignment Double) Source # | |
type N (Title v) Source # | |
Defined in Plots.Axis.Title | |
type V (Title v) Source # | |
Defined in Plots.Axis.Title type V (Title v) = v |
class HasTitle a where Source #
title :: Lens' a (Title (V a)) Source #
titleText :: Lens' a String Source #
The text used for the title. If the string is empty, no title is drawn.
Default is ""
titleStyle :: Lens' a (Style (V a) Double) Source #
The style applied to the title.
Default is mempty
.
titlePlacement :: Lens' a Placement Source #
The placement of the title against the axis.
Default is mempty
.
titleTextFunction :: Lens' a (TextAlignment Double -> String -> Diagram (V a)) Source #
The function used to draw the title text.
Default is mkText
.
titleAlignment :: Lens' a (TextAlignment Double) Source #
The TextAlignment
used for the title text. This is given to the
titleTextFunction
.
Default is
.BoxAlignedText
0.5 0
titleGap :: Lens' a Double Source #
The gap between the axis and the title.
Default is mempty
.
Instances
HasTitle (Title v) Source # | |
Defined in Plots.Axis.Title title :: Lens' (Title v) (Title (V (Title v))) Source # titleText :: Lens' (Title v) String Source # titleStyle :: Lens' (Title v) (Style (V (Title v)) Double) Source # titlePlacement :: Lens' (Title v) Placement Source # titleTextFunction :: Lens' (Title v) (TextAlignment Double -> String -> Diagram (V (Title v))) Source # titleAlignment :: Lens' (Title v) (TextAlignment Double) Source # | |
HasTitle (Axis c) Source # | |
Defined in Plots.Axis title :: Lens' (Axis c) (Title (V (Axis c))) Source # titleText :: Lens' (Axis c) String Source # titleStyle :: Lens' (Axis c) (Style (V (Axis c)) Double) Source # titlePlacement :: Lens' (Axis c) Placement Source # titleTextFunction :: Lens' (Axis c) (TextAlignment Double -> String -> Diagram (V (Axis c))) Source # titleAlignment :: Lens' (Axis c) (TextAlignment Double) Source # |