Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try better user flexibility when creating figures #27

Merged
merged 5 commits into from
Jul 16, 2024

Conversation

MOchiara
Copy link
Member

No description provided.

@MOchiara
Copy link
Member Author

Does this look better? Shall I do it for the other plots too?

@MOchiara MOchiara requested a review from callumrollo July 15, 2024 13:05
glidertest/tools.py Outdated Show resolved Hide resolved
if ax is None:
fig, ax = plt.subplots(1, 2, figsize=(14, 6))
else:
ax = ax
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is ax=ax needed? Seems superfluous

Copy link
Member

@callumrollo callumrollo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally this is a nice pattern of allowing the user to supply an ax if they want to. I've made some suggestions

@MOchiara
Copy link
Member Author

@callumrollo shall I do the same for the other plots?

@callumrollo
Copy link
Member

sure, go for it!

@MOchiara MOchiara requested a review from callumrollo July 16, 2024 08:17
@callumrollo callumrollo merged commit 9fca3c1 into OceanGlidersCommunity:main Jul 16, 2024
9 checks passed
@MOchiara MOchiara mentioned this pull request Jul 16, 2024
3 tasks
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