plotting
Plotting Utilities
This module provides utilities for setting up plotting environment.
Classes
PlotPallette
dataclass
PlotPallette(
bg_rgba_color: str = "rgba(38,42,50,1.0)",
bg_color: str = "#262a32",
fg_color: str = "#ffffff",
primary_color: str = "#11acd5",
secondary_color: str = "#ce6cff",
tertiary_color: str = "#ea3424",
quaternary_color: str = "#5cc99a",
plotly_template: str = "plotly_dark",
matplot_template: str = "dark_background",
)
Plotting color pallette
Attributes:
-
bg_rgba_color(str) –Background color in rgba format
-
bg_color(str) –Background color
-
fg_color(str) –Foreground color
-
primary_color(str) –Primary color
-
secondary_color(str) –Secondary color
-
tertiary_color(str) –Tertiary color
-
quaternary_color(str) –Quaternary color
-
plotly_template(str) –Plotly template
-
matplot_template(str) –Matplotlib template
Functions
setup_plotting
Setup plotting environment for matplotlib and plotly
Parameters:
-
(themePlotPallette, default:dark_theme) –Plotting theme. Defaults to dark_theme.
Returns:
-
PlotPallette(PlotPallette) –Plotting theme
Example:
```python import heartkit as hk
plot_theme = hk.util.ssetup_plotting(hk.utils.light_theme)