Skip to content

cartopy_tools using a deprecated matplotlib feature #17

Description

@blaylockbk

This import

from toolbox.cartopy_tools import common_features, pc

produces this error

from mpl_toolkits.axes_grid1.inset_locator import InsetPosition

ImportError: cannot import name 'InsetPosition' from 'mpl_toolkits.axes_grid1.inset_locator' (/usr/local/lib/python3.11/dist-packages/mpl_toolkits/axes_grid1/inset_locator.py)

Because the matplotlib API for this chaged.

See blaylockbk/goes2go#120.

I did fix this in the Herbie version of cartopy_tools

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions