Open robbibt opened 3 years ago
Hmm this is an interesting problem, do you think the suggested solution should be optional or compulsory?
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'