coco_pipe.viz.theme#
Attributes#
Functions#
|
Scope rcParams to a with-block. Safe in notebooks and tests. |
|
Set rcParams globally. Use coco_theme() context manager in notebooks/tests. |
|
Return |
|
Save a Matplotlib figure with coco_pipe defaults. |
Module Contents#
- coco_pipe.viz.theme.ThemeMode#
- coco_pipe.viz.theme.ColorKind#
- coco_pipe.viz.theme.coco_theme(mode='paper', colorblind=False)#
Scope rcParams to a with-block. Safe in notebooks and tests.
- coco_pipe.viz.theme.set_coco_theme(mode='paper', colorblind=False)#
Set rcParams globally. Use coco_theme() context manager in notebooks/tests.
- coco_pipe.viz.theme.figure_size(columns=1, aspect_ratio=1.0, width_pt=None)#
Return
(width, height)in inches.
- coco_pipe.viz.theme.save_figure(fig, path, *, dpi=300, facecolor='white', bbox_inches='tight')#
Save a Matplotlib figure with coco_pipe defaults.