Style and Theming

Style Functions

publiplots.set_notebook_style

Apply notebook-ready style to all matplotlib plots.

publiplots.set_publication_style

Apply publication-ready style to all matplotlib plots.

publiplots.reset_style

Reset matplotlib rcParams to matplotlib defaults.

Color Functions

publiplots.color_palette

Return a color palette as a list of hex colors or colormap.

Hatch Pattern Functions

publiplots.set_hatch_mode

Set the global hatch pattern density mode.

publiplots.get_hatch_mode

Get the current global hatch pattern density mode.

publiplots.get_hatch_patterns

Get hatch patterns for a specified density mode.

publiplots.list_hatch_patterns

Print available hatch patterns for visual inspection.

Marker Functions

publiplots.resolve_markers

Resolve marker patterns for plotting.

publiplots.resolve_marker_map

Create a mapping from category values to marker symbols.

Hatch Resolution Functions

publiplots.resolve_hatches

Resolve hatch patterns for plotting.

publiplots.resolve_hatch_map

Create a mapping from category values to hatch patterns.