I am sorry to have introduced that in the upgrade to matplotlib 2.1. Hardcoding
was easier than setting the style to classic for every calls for the documentation.
The reports I had was that the default style from 2.1 onwards made the documentation
plots look ugly.
Consultingwe may keep specifically only the math font of the classic style by:mpl.rcParams['mathtext.fontset'] = 'cm'mpl.rcParams['mathtext.rm'] = 'serif'and adopt the default matplotlib-2 style generally.