Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Legend
- class HasLegend a where
- legend :: Lens' a Legend
- legendPlacement :: Lens' a Placement
- legendGap :: Lens' a Double
- legendStyle :: Lens' a (Style V2 Double)
- legendSpacing :: Lens' a Double
- legendTextWidth :: Lens' a Double
- legendTextFunction :: Lens' a (String -> Diagram V2)
- legendTextStyle :: Lens' a (Style V2 Double)
- legendOrientation :: Lens' a Orientation
- drawLegend :: BoundingBox V2 Double -> [(Diagram V2, String)] -> Legend -> Diagram V2
Legend
The data type to describe how to draw a legend. For legend entries
see LegendEntry
.
Instances
Default Legend Source # | |
Defined in Plots.Legend | |
ApplyStyle Legend Source # | |
Defined in Plots.Legend applyStyle :: Style (V Legend) (N Legend) -> Legend -> Legend | |
HasStyle Legend Source # | The style for the bounding box of the legend. |
HasPlacement Legend Source # | |
HasGap Legend Source # | |
HasOrientation Legend Source # | |
Defined in Plots.Legend | |
HasVisibility Legend Source # | |
HasLegend Legend Source # | |
Defined in Plots.Legend legend :: Lens' Legend Legend Source # legendPlacement :: Lens' Legend Placement Source # legendGap :: Lens' Legend Double Source # legendStyle :: Lens' Legend (Style V2 Double) Source # legendSpacing :: Lens' Legend Double Source # legendTextWidth :: Lens' Legend Double Source # legendTextFunction :: Lens' Legend (String -> Diagram V2) Source # | |
type N Legend Source # | |
Defined in Plots.Legend | |
type V Legend Source # | |
Defined in Plots.Legend |
class HasLegend a where Source #
legend :: Lens' a Legend Source #
Lens onto the Legend
of something.
legendPlacement :: Lens' a Placement Source #
legendGap :: Lens' a Double Source #
The gap between the legend and the axis.
legendStyle :: Lens' a (Style V2 Double) Source #
The style applied to the surronding box of the legend.
legendSpacing :: Lens' a Double Source #
The spacing between entries in the legend.
legendTextWidth :: Lens' a Double Source #
The space given for the text in the legend.
legendTextFunction :: Lens' a (String -> Diagram V2) Source #
The function to generate the legend text.
legendTextStyle :: Lens' a (Style V2 Double) Source #
The style applied to the legend text.
legendOrientation :: Lens' a Orientation Source #
The way the legend entries are listed. (This will likely be replaced by a grid-like system)
Instances
HasLegend Legend Source # | |
Defined in Plots.Legend legend :: Lens' Legend Legend Source # legendPlacement :: Lens' Legend Placement Source # legendGap :: Lens' Legend Double Source # legendStyle :: Lens' Legend (Style V2 Double) Source # legendSpacing :: Lens' Legend Double Source # legendTextWidth :: Lens' Legend Double Source # legendTextFunction :: Lens' Legend (String -> Diagram V2) Source # | |
HasLegend (Axis c) Source # | |
Defined in Plots.Axis legend :: Lens' (Axis c) Legend Source # legendPlacement :: Lens' (Axis c) Placement Source # legendGap :: Lens' (Axis c) Double Source # legendStyle :: Lens' (Axis c) (Style V2 Double) Source # legendSpacing :: Lens' (Axis c) Double Source # legendTextWidth :: Lens' (Axis c) Double Source # legendTextFunction :: Lens' (Axis c) (String -> Diagram V2) Source # legendTextStyle :: Lens' (Axis c) (Style V2 Double) Source # legendOrientation :: Lens' (Axis c) Orientation Source # |