Skip to content

EOmaps v5.2

Compare
Choose a tag to compare
@raphaelquast raphaelquast released this 24 Nov 19:49
· 1846 commits to master since this release
5eeb2fd

A new minor releases with a lot of bugfixes and some awesome usability upgrades.

🌳 New

Some 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)

💧 Syntax

  • Maps(gs_ax=...) has been re-named to Maps(ax=...)
  • ❗ Usage of the m.figure.<...> accessor is depreciated!
    • Objects are now directly accessible via m.f, m.ax, m.coll and m.colorbar.ax_cb m.colorbar.ax_cb_plot

💧 Updates for keypress callbacks

  • keypress callbacks 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 the key kwarg)

💧 Updates for layer sliders

  • 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

💧 Updates for logos

  • 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!

🔨 Fixes

  • 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