Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Monomer.Graph.GraphCfg
Contents
Synopsis
- data GraphCfg s e = GraphCfg {
- _gcWheelRate :: Maybe Double
- _gcMinX :: Maybe Double
- _gcMaxX :: Maybe Double
- _gcMinY :: Maybe Double
- _gcMaxY :: Maybe Double
- _gcMinScaleX :: Maybe Double
- _gcMaxScaleX :: Maybe Double
- _gcMinScaleY :: Maybe Double
- _gcMaxScaleY :: Maybe Double
- _gcLockX :: Maybe Bool
- _gcLockY :: Maybe Bool
- _gcHideMinor :: Maybe Bool
- _gcHideNumbers :: Maybe Bool
- _gcHideGrid :: Maybe Bool
- _gcGraphColors :: Maybe [Color]
- _gcOnRightClickReq :: [(Double, Double) -> WidgetRequest s e]
- limitX :: (Double, Double) -> GraphCfg s e
- limitY :: (Double, Double) -> GraphCfg s e
- minimumX :: Double -> GraphCfg s e
- maximumX :: Double -> GraphCfg s e
- minimumY :: Double -> GraphCfg s e
- maximumY :: Double -> GraphCfg s e
- minScale :: Double -> GraphCfg s e
- maxScale :: Double -> GraphCfg s e
- minScaleX :: Double -> GraphCfg s e
- maxScaleX :: Double -> GraphCfg s e
- minScaleY :: Double -> GraphCfg s e
- maxScaleY :: Double -> GraphCfg s e
- lockX :: GraphCfg s e
- lockX_ :: Bool -> GraphCfg s e
- lockY :: GraphCfg s e
- lockY_ :: Bool -> GraphCfg s e
- hideMinorGridlines :: GraphCfg s e
- hideMinorGridlines_ :: Bool -> GraphCfg s e
- hideAxisNumbers :: GraphCfg s e
- hideAxisNumbers_ :: Bool -> GraphCfg s e
- hideGrid :: GraphCfg s e
- hideGrid_ :: Bool -> GraphCfg s e
- graphColors :: [Color] -> GraphCfg s e
- onRightClick :: WidgetEvent e => ((Double, Double) -> e) -> GraphCfg s e
- onRightClickReq :: ((Double, Double) -> WidgetRequest s e) -> GraphCfg s e
Configuration
Configuration options for graph:
wheelRate
: speed of scaling.limitX
: limits along X-axis.limitY
: limits along Y-axis.minimumX
: left limit along X-axis.maximumX
: right limit along X-axis.minimumY
: bottom limit along Y-axis.maximumY
: top limit along Y-axis.minScale
: minimum scale along both X-axis and Y-axis.maxScale
: maximum scale along both X-axis and Y-axis.minScaleX
: minimum scale along X-axis.maxScaleX
: maximum scale along X-axis.minScaleY
: minimum scale along Y-axis.maxScaleY
: maximum scale along Y-axis.lockX
: lock X-axis (scale only Y-axis).lockY
: lock Y-axis (scale only X-axis).hideMinorGridlines
: whether to hide minor gridlines.hideAxisNumbers
: whether to hide axis numbers.hideGrid
: whether to hide all gridlines and axis numbers.graphColors
: which colors should be used to plot graphs.onRightClick
: event to raise on right click.onRightClickReq
:WidgetRequest
to generate on right click.
Constructors
GraphCfg | |
Fields
|
hideMinorGridlines :: GraphCfg s e Source #
Hide minor gridlines.
hideMinorGridlines_ :: Bool -> GraphCfg s e Source #
Whether to hide minor gridlines.
hideAxisNumbers :: GraphCfg s e Source #
Hide axis numbers.
hideAxisNumbers_ :: Bool -> GraphCfg s e Source #
Whether to hide axis numbers.
graphColors :: [Color] -> GraphCfg s e Source #
List of colors which are used to plot graphs. This list is then cycled when plotting graphs (in case there are more graphs than provided colors).