mplotutils
helper functions for cartopy and matplotlib
Versions
0.2.0 (01.06.2018)
Mayor release, mostly introducing the new colorbar functionality.
- add
_color_palettethat selects colors from the whole range of the colormap. Previously we used theseabornlogic that excludes colors at the edge of the colorbar (closes GH:#1). - the colorbar functionality was entirely redesigned:
- new top-level function
mpu.colorbar - added
aspectkeyword which defines the ratio of long to short side - the default width/ height is now
aspect=20(wassize=0.04) padandsizeare now scaled by the width/ height of the axes (was width/ height of the figure)padnow uses the matplotlib default (0.05 for vertical bars and 0.15 for horizontal colorbars)
- new top-level function
- add
_is_monotonictoinfer_interval_breaks - renamed
sample_data_3dtosample_data_map
0.1.0 (13.03.2018)
- Functionality as developped for pyvis (see below), packed into a module.
History
This package bases on functions developped for the python visualisation workshop at C2SM (Part 3 -> utils.py).
utils.py in turn is based on mutils.