Skip to content

Commit 853197c

Browse files
Jammy2211claude
authored andcommitted
Visualization cleanup: colorbar and plot config refinements
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 169a65d commit 853197c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

autoarray/config/visualize/general.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ colorbar:
2727
fraction: 0.047 # Fraction of original axes to use for the colorbar.
2828
pad: 0.01 # Padding between colorbar and axes.
2929
labelrotation: 90 # Rotation of colorbar tick labels in degrees.
30-
labelsize: 18 # Font size of colorbar tick labels for single-panel figures.
31-
labelsize_subplot: 18 # Font size of colorbar tick labels for subplot panels.
30+
labelsize: 16 # Font size of colorbar tick labels for single-panel figures.
31+
labelsize_subplot: 16 # Font size of colorbar tick labels for subplot panels.
3232
mat_plot:
3333
figure:
3434
figsize: (7, 7) # Default figure size. Override via aplt.Figure(figsize=(...)).

autoarray/plot/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ def _apply_colorbar(
618618
Override the unit string on the middle tick. Pass ``""`` for unitless panels.
619619
``None`` reads the unit from config.
620620
is_subplot
621-
When ``True`` uses ``labelsize_subplot`` from config (default 18) instead of
622-
the single-figure ``labelsize`` (default 18).
621+
When ``True`` uses ``labelsize_subplot`` from config (default 16) instead of
622+
the single-figure ``labelsize`` (default 16).
623623
"""
624624
tick_values = _colorbar_tick_values(getattr(mappable, "norm", None))
625625

@@ -631,7 +631,7 @@ def _apply_colorbar(
631631
ticks=tick_values,
632632
)
633633
labelsize_key = "labelsize_subplot" if is_subplot else "labelsize"
634-
labelsize = float(_conf_colorbar(labelsize_key, 18))
634+
labelsize = float(_conf_colorbar(labelsize_key, 16))
635635
labelrotation = float(_conf_colorbar("labelrotation", 90))
636636
if tick_values is not None:
637637
cb.ax.set_yticklabels(

0 commit comments

Comments
 (0)