inset maps do not render/plot stuff things outside the top api #242
Labels
bug
Something isn't working
fixed in next version
issue is already fixed and will be solved in the next release!
temporary fix available
There is a workaround available until a proper fix is released
Describe the bug
When using the Maps.new_inset_map instance, anything manually added to the axis via the
m.ax
object is not rendered inside the inset. The only possible things to be rendered within the inset are from the top API (layers,.add_*
methods, or.set_data
).This doesn't happen when using a standard Maps class, where one can access the
m.ax
property and plot anything, as long as it is in the right crs, and callplt.draw()
to update the map.A typical example is plotting several data layers, such as a contour and a raster. The raster can be rendered via set_data in both maps, but the contour can only be rendered in the main map, leaving the inset without the artist. This also happens with lines and polygons, although one could convert to geopandas and use
add_gdf
.The documentation says that "inset maps" have features disabled, but it is not explicit about what is disabled. If this is "a feature," I would like to learn how to turn it off to render things not implemented in the top object API.
To Reproduce
Expected behavior
a red square is rendered within the inset.
General information:
linux
eomaps-8.2
python-3.11.7
The text was updated successfully, but these errors were encountered: