chemparseplot.plot.theme#
Plotting themes and colormap utilities.
Added in version 0.1.0.
Module Contents#
Classes#
Holds all aesthetic parameters for a matplotlib theme. |
Functions#
Build and register a LinearSegmentedColormap from a list of hex colors. |
|
Sets global plt.rcParams based on the theme. |
|
Applies theme properties specific to an axis instance. |
|
Extended theme setup for publication-quality figures. |
|
Retrieves a theme by name and applies optional property overrides. |
Data#
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.
Added in version 0.1.0.
- 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.
Added in version 0.1.0.
- chemparseplot.plot.theme.setup_global_theme(theme: chemparseplot.plot.theme.PlotTheme)#
Sets global plt.rcParams based on the theme.
Added in version 0.1.0.
- chemparseplot.plot.theme.apply_axis_theme(ax: matplotlib.pyplot.Axes, theme: chemparseplot.plot.theme.PlotTheme)#
Applies theme properties specific to an axis instance.
Added in version 0.1.0.
- chemparseplot.plot.theme.setup_publication_theme(theme: chemparseplot.plot.theme.PlotTheme)#
Extended theme setup for publication-quality figures.
Calls
setup_global_themeand adds line widths, spine removal, DPI, and tight bounding box defaults.Added in version 1.3.0.
- chemparseplot.plot.theme.get_theme(name: str, **overrides) chemparseplot.plot.theme.PlotTheme#
Retrieves a theme by name and applies optional property overrides.
Added in version 0.1.0.