Copyright | (C) 2016 Christopher Chalmers |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Christopher Chalmers |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The title used for a plot.
Synopsis
- data Title b v n
- class HasTitle a b | a -> b where
- title :: Lens' a (Title b (V a) (N a))
- titleText :: Lens' a String
- titleStyle :: Lens' a (Style (V a) (N a))
- titlePlacement :: Lens' a Placement
- titleTextFunction :: Lens' a (TextAlignment (N a) -> String -> QDiagram b (V a) (N a) Any)
- titleAlignment :: Lens' a (TextAlignment (N a))
- titleGap :: Lens' a (N a)
- drawTitle :: TypeableFloat n => BoundingBox V2 n -> Title b V2 n -> QDiagram b V2 n Any
Documentation
Instances
(Renderable (Text n) b, TypeableFloat n) => Default (Title b V2 n) Source # | |
Defined in Plots.Axis.Title | |
HasGap (Title b v n) Source # | |
HasPlacement (Title b v n) Source # | |
HasVisibility (Title b v n) Source # | |
HasTitle (Title b v n) b Source # | |
Defined in Plots.Axis.Title title :: Lens' (Title b v n) (Title b (V (Title b v n)) (N (Title b v n))) Source # titleText :: Lens' (Title b v n) String Source # titleStyle :: Lens' (Title b v n) (Style (V (Title b v n)) (N (Title b v n))) Source # titlePlacement :: Lens' (Title b v n) Placement Source # titleTextFunction :: Lens' (Title b v n) (TextAlignment (N (Title b v n)) -> String -> QDiagram b (V (Title b v n)) (N (Title b v n)) Any) Source # titleAlignment :: Lens' (Title b v n) (TextAlignment (N (Title b v n))) Source # | |
type N (Title b v n) Source # | |
Defined in Plots.Axis.Title | |
type V (Title b v n) Source # | |
Defined in Plots.Axis.Title |
class HasTitle a b | a -> b where Source #
title :: Lens' a (Title b (V a) (N 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) (N a)) 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 (N a) -> String -> QDiagram b (V a) (N a) Any) Source #
The function used to draw the title text.
Default is mkText
.
titleAlignment :: Lens' a (TextAlignment (N a)) Source #
The TextAlignment
used for the title text. This is given to the
titleTextFunction
.
Default is
.BoxAlignedText
0.5 0
titleGap :: Lens' a (N a) Source #
The gap between the axis and the title.
Default is mempty
.