matplotlib / basemap

Plot on map projections (with coastlines and political boundaries) using matplotlib
MIT License
774 stars 392 forks source link

Plot sub-map by passing different extents to single basemap object #519

Open imsahil007 opened 3 years ago

imsahil007 commented 3 years ago

Is there a way to extract basemap plt from an object on different extents by passing different values of llcrnrlat, urcrnrlat,llcrnrlon,urcrnrlon I want to pass some contourf data. but want to extract multiple images from the object using different extents

imsahil007 commented 3 years ago

I do not want to create a new basemap object as the basemap object generation takes a long time

WeatherGod commented 3 years ago

You should be able to just change the x/y limits after you contoured the data.

You should also be using Cartopy instead of basemap which has been end-of-lifed last year.

On Thu, Jul 22, 2021 at 11:21 AM Sahil @.***> wrote:

I do not want to create a new basemap object as the basemap object generation takes a long time

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matplotlib/basemap/issues/519#issuecomment-884999435, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACHF6GKCSCJ23EIHRRUWR3TZAZN7ANCNFSM5A2HK2XA .