Problem
aa.plot_settings(...) must be called before nearly every figure — ≈54 calls across 18 tutorials/protocols, and every cheat-sheet recipe carries one. There is no way to set the publication style once per session.
Goal
Provide an opt-in way to set the plot style once — e.g. an aa.options['plot_settings'] dict applied automatically by plot classes, or an aa.plot_context(...) context manager — so repeated calls are unnecessary; default visuals unchanged when unset.
Requirements
KPIs / Acceptance
Scope / non-goals
No change to plot_settings defaults; not restyling existing plots.
Dependencies
aaanalysis/config.py is CONFIRM-FIRST. Part of the Simplify API epic #126.
Standards checklist
Problem
aa.plot_settings(...)must be called before nearly every figure — ≈54 calls across 18 tutorials/protocols, and every cheat-sheet recipe carries one. There is no way to set the publication style once per session.Goal
Provide an opt-in way to set the plot style once — e.g. an
aa.options['plot_settings']dict applied automatically by plot classes, or anaa.plot_context(...)context manager — so repeated calls are unnecessary; default visuals unchanged when unset.Requirements
aaanalysis/plotting/(+aaanalysis/config.py):options['plot_settings']applied lazily by plot entry points, or aplot_contextmanager.KPIs / Acceptance
plot_settings()call (regression test).Scope / non-goals
No change to
plot_settingsdefaults; not restyling existing plots.Dependencies
aaanalysis/config.pyis CONFIRM-FIRST. Part of the Simplify API epic #126.Standards checklist
config.pyCONFIRM-FIRST · numpydoc · regression test.