You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When plotting a geopandas animation with a basemap supplied by basemap_format, the basemap extends only to the bounding box of the spatial data. In the example below, this causes a constantly changing basemap region (starting with a square and ending up with a longer rectangle). This is a disconcerting effect which distracts from the animation itself.
Expected behavior
I would expect the basemap to fill a consistent portion of the total animation figure boundary regardless of the bounding box of the features currently being plotted. For example, I would expect basemap data to be plotted in the following region (red) for this frame:
The text was updated successfully, but these errors were encountered:
robbibt
changed the title
Basemap does not fill extent of plot when plotting geopandas features
Basemap does not fill consistent extent of plot when plotting geopandas features
Jul 22, 2021
Good question - I'd lean towards compulsory because we can already customise the shape of the plotting area/figure using the figsize param. Using the figsize area to define the basemap extent seems to make sense as it already provides its own flexibility (e.g. if a user did want a vertical/narrow area of basemap shown, they could request this with a custom figsize).
Describe the bug
When plotting a
geopandas
animation with a basemap supplied bybasemap_format
, the basemap extends only to the bounding box of the spatial data. In the example below, this causes a constantly changing basemap region (starting with a square and ending up with a longer rectangle). This is a disconcerting effect which distracts from the animation itself.Expected behavior
I would expect the basemap to fill a consistent portion of the total animation figure boundary regardless of the bounding box of the features currently being plotted. For example, I would expect basemap data to be plotted in the following region (red) for this frame:
And the same for this frame:
To Reproduce
Additional context
pandas_alive
version '0.2.4'The text was updated successfully, but these errors were encountered: