Skip to content

Plotting options#4

Open
amorison wants to merge 2 commits intomasterfrom
plotting-options
Open

Plotting options#4
amorison wants to merge 2 commits intomasterfrom
plotting-options

Conversation

@amorison
Copy link
Owner

@amorison amorison commented Jan 8, 2025

This is a PR created from #3 to keep the scope of the latter small.

I think the changes proposed are good in term of features, i.e. being able to plot only the temperature field, or have various levels of "verbosity" in annotations.

However, even before this PR, I was already not happy with the state of the plotting module. Its functions have exploded in complexity and numbers of arguments since their creations as our plotting needs evolved. I think this complexity is a symptom that the current code is not designed properly. These functions should be decomposed in smaller objects that represent the "subplots" we're interested in and that can be more easily combined rather than adding even more switches. I've had success using https://github.com/amorison/lazympl in other projects to make composable plots and annotations, I'll give this a go.

I'm keeping this PR open for now as a reminder that we want to implement these functionalities, even if the actual design might end up being different.

@labrosse
Copy link
Collaborator

labrosse commented Jan 8, 2025 via email

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.

2 participants