Skip to content

Make output_format configurable, default to show#248

Merged
Jammy2211 merged 1 commit intomainfrom
feature/output-format-config
Apr 3, 2026
Merged

Make output_format configurable, default to show#248
Jammy2211 merged 1 commit intomainfrom
feature/output-format-config

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • Add output_format: show config option to visualize/general.yaml so plots display interactively by default
  • Add _conf_output_format() helper and update save_figure/subplot_save to treat "show" as plt.show()
  • Change all function-signature defaults from "png" to None (resolved from config at runtime)

API Changes

  • save_figure(format=) and subplot_save(output_format=) now default to None instead of "png". When None, the value is read from visualize/general.yaml → general.output_format (default: "show")
  • All plot functions (plot_array, plot_grid, plot_yx, plot_inversion, etc.) now default output_format=None
  • Existing callers that pass output_format="png" explicitly (including all tests) are unaffected

Test plan

  • All 19 plot tests pass
  • Tests already pass output_format="png" explicitly — no test changes needed

🤖 Generated with Claude Code

…splay

Add output_format config option to visualize/general.yaml so users get
interactive matplotlib windows by default instead of silently saving PNGs.
Tests pass output_format="png" explicitly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 6709fc6 into main Apr 3, 2026
0 of 8 checks passed
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