Skip to content

Overhaul 2D plot styling and subplot layout#239

Merged
Jammy2211 merged 1 commit intomainfrom
feature/plot-improvements
Mar 25, 2026
Merged

Overhaul 2D plot styling and subplot layout#239
Jammy2211 merged 1 commit intomainfrom
feature/plot-improvements

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • Default colormap driven by segmentdata.py via general.yaml config (autoarray colormap registered lazily)
  • Colorbar: 3 ticks (min/mid/max), unit on middle label, configurable fraction/pad/rotation/labelsize with separate figure vs subplot sizes
  • Tick labels: arcsecond suffix, inward positioning, 2 d.p. formatting, vertical y-axis labels, subplot-specific fontsizes
  • Axes box aspect set from data extent (x_range / y_range) — restores old square-panel behaviour and eliminates subplot whitespace
  • hide_unused_axes() called in all fixed-grid subplot functions to suppress blank panels
  • subplot_imaging_dataset consolidated to 3×3 grid; subplot_imaging removed
  • Position dots default to black
  • save_reconstruction_csv() extracted from plotter.py to inversion_plots.py

Test plan

  • Run subplot_imaging_dataset and verify 3×3 grid with no blank axes
  • Check colorbar tick labels use configured fontsize
  • Check axes panels are square with no surrounding whitespace
  • Verify autoarray colormap is applied by default

🤖 Generated with Claude Code

- Default colormap driven by segmentdata.py via config (autoarray)
- Colorbar: 3 ticks (min/mid/max), unit on middle, configurable
  fraction/pad/rotation/labelsize (separate figure vs subplot sizes)
- Tick labels: arcsecond suffix, inward positioning, 2 d.p. formatting,
  vertical y-axis labels
- Axes box aspect set from data extent (restores old square-panel
  behaviour, eliminates subplot whitespace)
- hide_unused_axes() called in all fixed-grid subplot functions
- subplot_imaging_dataset consolidated to 3x3 grid; subplot_imaging removed
- Position dots default to black
- save_reconstruction_csv() extracted to inversion_plots.py

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit f40be78 into main Mar 25, 2026
0 of 8 checks passed
@Jammy2211 Jammy2211 deleted the feature/plot-improvements branch March 25, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant