Skip to content

Add fancy stuff to calibration plotting - #191

Open
MattBrst wants to merge 6 commits into
timflow-org:devfrom
MattBrst:feature/plot-transient-results-xsection-support
Open

MattBrst wants to merge 6 commits into
timflow-org:devfrom
MattBrst:feature/plot-transient-results-xsection-support

Conversation

@MattBrst

@MattBrst MattBrst commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

PR for #190, to improve the cal.plot_transient_results() function.

Some examples to illustrate the use:

Original plot from the Combined calibration notebook (see link in #188)
plot_David

New plot with fancy additions using the following line of code:

cal.plot_transient_results(units={"head": "m", "time": "days", "x": "m"})
image

Yet another plot from a project, to show the behavior with several layers:
image

MattBrst and others added 5 commits September 25, 2026 12:47
…dels

Cross-section models (ModelXsection) have a physically meaningful x
coordinate, so subplots are now ordered by (x, layer) and titled with
the observation's location and layer - matching the notebook helper
plot_headsT this method is meant to replace. Other model types (e.g.
areal ModelMaq) fall back to ordering/titling by observation name,
since x alone isn't a meaningful ordering there.

Also adds an optional `units` dict (same convention as
plots.xsection's units=) to label the head/time axes, e.g.
units={"head": "m", "time": "days"}.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@MattBrst

Copy link
Copy Markdown
Contributor Author

Note concerning the last commit: by changing the layout from tight to constrained, it automatically adjusts the size when I afterwards add a suptitle to the plot.

This branch has not been deployed

No deployments
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