chemparseplot.plot.theme

Module Contents

Classes

PlotTheme

Holds all aesthetic parameters for a matplotlib theme.

Functions

build_cmap

Build and register a LinearSegmentedColormap from a list of hex colors.

setup_global_theme

Sets global plt.rcParams based on the theme.

apply_axis_theme

Applies theme properties specific to an axis instance.

get_theme

Retrieves a theme by name and applies optional property overrides.

Data

log

RUHI_COLORS

BATLOW_THEME

RUHI_THEME

THEMES

API

chemparseplot.plot.theme.log

‘getLogger(…)’

chemparseplot.plot.theme.RUHI_COLORS

None

class chemparseplot.plot.theme.PlotTheme

Holds all aesthetic parameters for a matplotlib theme.

name: str

None

font_family: str

None

font_size: int

None

facecolor: str

None

textcolor: str

None

edgecolor: str

None

gridcolor: str

None

cmap_profile: str

None

cmap_landscape: str

None

highlight_color: str

None

chemparseplot.plot.theme.BATLOW_THEME

‘PlotTheme(…)’

chemparseplot.plot.theme.RUHI_THEME

‘PlotTheme(…)’

chemparseplot.plot.theme.THEMES

None

chemparseplot.plot.theme.build_cmap(hex_list, name)

Build and register a LinearSegmentedColormap from a list of hex colors.

chemparseplot.plot.theme.setup_global_theme(theme: chemparseplot.plot.theme.PlotTheme)

Sets global plt.rcParams based on the theme.

chemparseplot.plot.theme.apply_axis_theme(ax: matplotlib.pyplot.Axes, theme: chemparseplot.plot.theme.PlotTheme)

Applies theme properties specific to an axis instance.

chemparseplot.plot.theme.get_theme(name: str, **overrides) chemparseplot.plot.theme.PlotTheme

Retrieves a theme by name and applies optional property overrides.