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

Update spatialstats.py plot functions to work with provided ax #269

Merged
merged 2 commits into from
Jun 7, 2022

Conversation

adehecq
Copy link
Member

@adehecq adehecq commented Jun 3, 2022

Before the PR, the functions plot_1d_binning, plot_2d_binning and plot_vgm would create a new figure by default (with ax=None). With ax set to an existing ax, the figure would actually occupy the whole figure and disregard subplots.
With this update, the figure only occupy the space for the provided Axes instance.

@adehecq adehecq requested a review from rhugonnet June 3, 2022 13:20
Copy link
Contributor

@rhugonnet rhugonnet left a comment

Choose a reason for hiding this comment

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

Very nice! Practical this get_position functionality!

@adehecq adehecq merged commit f26c393 into GlacioHack:main Jun 7, 2022
@adehecq adehecq deleted the spatialstats branch June 7, 2022 15:14
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