ggplotnim/ggplot_theme

Source   Edit  

Procs

proc buildTheme(filledScales: FilledScales; p: GgPlot): Theme {.
    ...raises: [ValueError, Exception], tags: [].}
builds the final theme used for the plot. It takes the theme of the GgPlot object and fills in all missing fields as required from filledScales and p. Source   Edit  
proc calculateMarginRange(theme: Theme; scale: ginger.Scale; axKind: AxisKind): ginger.Scale {.
    ...raises: [], tags: [].}
Source   Edit  
proc getCanvasBackground(theme: Theme): Style {....raises: [], tags: [].}
returns a suitable style (or applies default) for the background color of the whole plot canvas. By default it is transparent Source   Edit  
proc getGridLineStyle(theme: Theme): Style {....raises: [], tags: [].}
Extracts the fields of theme that are set for grid lines and applies defaults else. Source   Edit  
proc getMinorGridLineStyle(majorStyle: Style; theme: Theme): Style {....raises: [],
    tags: [].}
Extracts the fields of theme that are set for minor grid lines and applies defaults else. Source   Edit  
proc getPlotBackground(theme: Theme): Style {....raises: [], tags: [].}
returns a suitable style (or applies default) for the background of the plot area Source   Edit  
func hasSecondary(theme: Theme; axKind: AxisKind): bool {....raises: [], tags: [].}
Source   Edit