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

BUG: do not change the aspect of the axis #253

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

martinfleis
Copy link
Member

Closes #251

Using aspect=ax.get_aspect() fixes the behaviour reported in #251 and avoid changing the aspect of the axis if it is other than equal.

What I am not certain is whether we want to do this as it means that resulting pixels are not square, distorting the image. But that is ultimately a responsibility of a user and this way we give them a chance to affect the aspect as until now, we always enforce equal aspect.

The only relevant change is on line 204, the rest is linting.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Looks good!

@martinfleis martinfleis merged commit 00ca031 into geopandas:main Aug 31, 2024
10 checks passed
@martinfleis martinfleis deleted the keep-aspect branch August 31, 2024 15:21
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.

check scaling of basemaps and axis
2 participants