Skip to content

Allow setting aspect in Raster.plot #901

Description

@adehecq

Currently, Raster.plot forces the aspect to be "equal" (see here). While this makes sense in most cases, one may want to set a different aspect (e.g. when plotting data in lat/lon).
A quick fix is to check whether "aspect" is set in the kwargs, and use that in priority, otherwise revert to the default "equal".
One can also easily overwrite it with ax.set_aspect() afterwards, so this is not a big issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature improvement or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions