geneviewer_theme()
Return the settings of a built-in theme.
To see them, or to start a theme of your own. The options of components have the names of the chart spec, e.g. cornerRadius and textStyle; GC.theme() takes these and the method's argument names (corner_radius, legendTextOptions).
Usage
python
from geneviewer import geneviewer_theme
geneviewer_theme(name='default')Arguments
| Argument | Type | Description |
|---|---|---|
name | str | The theme: "default", "classic", "dark", "vintage", "infographic", "publication" or "bw". |
Value
dict: A new copy of the theme's settings, to change and pass to GC.theme(), as theme= or as **settings.
Examples
python
>>> settings = geneviewer_theme("classic")
>>> settings["textColor"] = "navy"