Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Legend b n
- class HasLegend a b | a -> b where
- legend :: Lens' a (Legend b (N a))
- legendPlacement :: Lens' a Placement
- legendGap :: Lens' a (N a)
- legendStyle :: Lens' a (Style V2 (N a))
- legendSpacing :: Lens' a (N a)
- legendTextWidth :: Lens' a (N a)
- legendTextFunction :: Lens' a (String -> QDiagram b V2 (N a) Any)
- legendTextStyle :: Lens' a (Style V2 (N a))
- legendOrientation :: Lens' a Orientation
- drawLegend :: (TypeableFloat n, Renderable (Path V2 n) b) => BoundingBox V2 n -> [(QDiagram b V2 n Any, String)] -> Legend b n -> QDiagram b V2 n Any
Legend
The data type to describe how to draw a legend. For legend entries
see LegendEntry
.
Instances
class HasLegend a b | a -> b where Source #
legend :: Lens' a (Legend b (N a)) Source #
Lens onto the Legend
of something.
legendPlacement :: Lens' a Placement Source #
legendGap :: Lens' a (N a) Source #
The gap between the legend and the axis.
legendStyle :: Lens' a (Style V2 (N a)) Source #
The style applied to the surronding box of the legend.
legendSpacing :: Lens' a (N a) Source #
The spacing between entries in the legend.
legendTextWidth :: Lens' a (N a) Source #
The space given for the text in the legend.
legendTextFunction :: Lens' a (String -> QDiagram b V2 (N a) Any) Source #
The function to generate the legend text.
legendTextStyle :: Lens' a (Style V2 (N a)) 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
Drawing a legend
:: (TypeableFloat n, Renderable (Path V2 n) b) | |
=> BoundingBox V2 n | bounding box to place legend against |
-> [(QDiagram b V2 n Any, String)] | diagram pictures along with their key |
-> Legend b n | options for drawing the legend |
-> QDiagram b V2 n Any | rendered legend |
Draw a legend to the bounding box using the legend entries and legend options.