A minor bugfix release (that also brings some miscellaneous convenience functions)
๐ณ NEW
(โญ: new feature, ๐: new functionality for existing feature)
- โญ there's a new function `m.subplots_adjust()` for `Maps` and `MapsGrid` objects to quickly set the margins of the plots as well as the horizontal and vertical spacing between subplots:
python
m = Maps()
m.subplots_adjust(left=0.2, right=0.8, top=0.9, bottom=0.1)
python
mg = MapsGrid()
mg.subplots_adjust(left=0.2, right=0.8, top=0.9, bottom=0.1, hspace=0.05, wspace=0.15)
(these are just shortcuts for `m.figure.gridspec.update()` + `m.redraw()`)
- ๐ `m.add_colorbar` now has an additional kwarg `log=True/False` to make the y-axis of the histogram logarithmic.
- ๐ `m.add_scalebar` now provides style-presets via `preset="<preset-name>"`
- at the moment there's only 1 preset... more to come in future releases!
- `"bw"`: a simple black-and-white style without a background
๐จ fixes
- fix `m.savefig` with different dpi-settings requres a re-draw
- fix `m.plot_map` with `dynamic=True` does not require a update
- incorporated some updates to ensure that layers are only re-drawn if necessary
- make sure cached backgrounds are always re-drawn if new artists are added
- fix annotation in example 9 (still used old syntax)