raphaelquast/EOmaps: EOmaps v5.2
Description
A new minor releases with a lot of bugfixes and some awesome usability upgrades.
🌳 NewSome internals of EOmaps have been re-structured to make it easier to add Maps-objects to existing matplotlib-figures! Check the docs for more details: 🍱 Adding Maps to existing figures
f = plt.figure()
ax = f.add_subplot(211)
m = Maps(f=f, ax=212)
🌦️ Changes
💧 General
When using
m.savefig(dpi=...)with the plot-shapes"shade_points"or"shade_raster"the shading-pipeline is now automatically adjusted to reflect the dpi of the saved figure (e.g. exporting higher dpi figures will also result in more detailed shading of the data).The 🧰 Companion-Widget has some new functionalities! (e.g. basic click/pick callbacks)
Maps(gs_ax=...)has been re-named toMaps(ax=...)- ❗ Usage of the
m.figure.<...>accessor is depreciated!- Objects are now directly accessible via
m.f,m.ax,m.collandm.colorbar.ax_cbm.colorbar.ax_cb_plot
- Objects are now directly accessible via
keypresscallbacks are now triggered irrespective of the mouse-position (as long as the figure is active)- It is now also possible to create callbacks that trigger on any key by using
key=None. (the actually used key is passed to the callback via thekeykwarg)
- There's a new function
slider.set_layers()to updates the layers targeted by an existing slider - The slider-label now shows the currently visible layer-name in red if the active layer is not targeted by the slider
- It is now possible to fix the logo-position relative to the map with
m.add_logo(fix_position=True)(the default is False so that logos can be re-positioned with the layout-editor!) - Checkout the new 👽 logos section in the docs for more details!
- fix issues when adding Maps-objects to existing figures
- fix issues when setting the map-extent to the data-extent
- speed up opening datasets with the companion widget (avoid scaling to retrieve info)
- allow adding MapsGrid objects to existing figures
- make "switch_layer" keypress callbacks accept only strings as layer-names
- update github actions to address depreciation warnings
- fix registering of transparent colormaps
- fix issues with boundary-pixels for "raster" shape
- fix using layer-names that contain double-underscores
- make sure the figure is closed if Maps is used as context-manager
- fix handling of long layer-names in companion-widget
- assign n for shapes based on dataset-size (if not specified explicitly)
- remove cached background layers of deleted layers
- adjust shading pipeline on figure resize
- adjust shading pipeline on m.savefig if dpi is changed
- fix re-fetching of xyz webmap services if axis size changed
- fix issues when adding new webmap layers via the companion widget
- avoid keeping companion-widget "always-on-top"
- fix logos reset position at next draw event
Files
raphaelquast/EOmaps-v5.2.zip
Files
(32.5 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:6761c90d14296bb5e145469508fbe4b9
|
32.5 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/raphaelquast/EOmaps/tree/v5.2 (URL)