Compatibility fixes for matplotlib-3.1+
Created by: alurban
This PR fixes some compatibility issues with matplotlib-3.1+:
- Since LaTeX preamble definitions will now have expected type
str
(notlist
), try to concatenate TeX macros to a list first, then fall back to a string if that fails (see TeX API changes) - Since the public utility
matplotlib.scale.get_scale_docs
is deprecated, switch to usinginspect.getdocs
directly while preserving the order of scales (see attribute deprecations) -
matplotlib.cbook.iterable
is deprecated, usenumpy.iterable
-
cbar.get_clim
is deprecated, usecbar.mappable.get_clim
This fixes #1099 (closed), and supersedes #1100.