EOmaps v4.3
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=True
or explicitly callm.add_feature.preset.coastline()
to add coastlines!)
- (use
- π
m.add_gdf
now allows using apath
to a file that can be read withgeopandas.read_file
instead of providing thegeopandas.GeoDataFrame
directly - β keyword-arguments for
m.new_inset_map
have changed!edgecolor
andlinewidth
are 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.dynamic
has been removed
π³ New
β New accessor for classification schemes
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!
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 + L
to enter the LayoutEditor mode - press
ALT + L
again orescape
to 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