raphaelquast/EOmaps: EOmaps v4.3
Description
A new release that brings some nice updates and an awesome new Layout-Editor!
🌦️ Changes- 🍃 utility-widgets now auto-update themselves if new layers are added to the map!
- to show only a subset of the available layers, use
m.util.layer_selector(layers=["layer1", ...])
- to show only a subset of the available layers, use
- 🍃 coastlines are no longer added by default when creating new layers from files (e.g. NetCDF, GeoTIFF etc.)
- (use
coastlines=Trueor explicitly callm.add_feature.preset.coastline()to add coastlines!)
- (use
- 🍃
m.add_gdfnow allows using apathto a file that can be read withgeopandas.read_fileinstead of providing thegeopandas.GeoDataFramedirectly - ❗ keyword-arguments for
m.new_inset_maphave changed!edgecolorandlinewidthare depreciated and will be removed in next major versions!- to set the properties of the boundary-polygon, use
m.new_inset_map(boundary=dict(fc="r", lw=1)instead
- ❗
m.cb.dynamichas been removed ## 🌳 New
The new classification-schemes accessor 🌟 m.set_classify provides autocompletion and proper docstrings!
(you can use it just as you would use m.set_classify_specs)
Just select the scheme you want to use and call it with the relevant parameters:
m = Maps()
m.set_data(...)
m.set_classify.Quantiles(k=5)
m.plot_map(...)
# alternative (old) way to set the classification:
# m.set_classify_specs(scheme="Quantiles", k=5)
⭐ There's a new 🏗️ Layout Editor to quickly re-arrange the subplots of a figure!
<img src=https://user-images.githubusercontent.com/22773387/176476897-119658ca-0882-4880-a906-7af787887a3d.gif width=65%>
The Layout Editor can be used to quickly re-arrange the position of all axes in the figure. (works for maps, colorbars, inset-maps, ordinary matplotlib plots etc.)
- You can save and re-apply a layout with:
- 🌟
m.get_layout(): get the current layout (or dump the layout as a json-file) - 🌟
m.apply_layout(): apply a given layout (or load and apply the layout from a json-file) - 🌟
m.edit_layout(filepath=...): enter LayoutEditor and (optionally) save layout as a json-file on exit
- 🌟
To quickly enter/exit Layout Editor, simply use the assigned keyboard-shortcuts:
- press
ALT + Lto enter the LayoutEditor mode - press
ALT + Lagain orescapeto exit the LayoutEditor
Have a look at the new section in the 📖 documentation for more details!
🔨 Fixes- fix recognizing the parent layer when initializing utility-widgets from the parent Maps object
- fix layer-selectors should indicate no active layer if the active layer is not part of the widget
- updates for inset-maps
- add fix for reprojection issues with certain projections
- fix reprojection sometimes masks certain shapes
Files
raphaelquast/EOmaps-v4.3.zip
Files
(29.2 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:fe9168a2ca0be279bb653ed63fec7bdd
|
29.2 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/raphaelquast/EOmaps/tree/v4.3 (URL)