I upgraded Anaconda Python to the latest version (4.3), where they upgraded Matplotlib to version 2.
The update introduced some significant changes to the default style ( see here ). And, although I really like some of these changes, I disagree with some of them.
Therefore, I made some changes, as indicated in the link above:
#%matplotlib inline
Using latex as axis labels, as in the above code, leads to a figure with inconsistent text along the axes (see the following image).

How to return to the previous behavior (see image below) or to a consistent font layout?

EDIT : Using the Latex back-end, I can get a good result, but it is very slow. In any case, I think that the inner part should be able to get consistent output, and switching to another interface is not a real solution, but a more workaround.
To use the latex end:
#%matplotlib inline
Result with matplotlib 2:

The resulting plot with an older version (still a bit different, maybe due to some latex differences):

But then again, the desired result is what is obtained from an older version of matplotlib and shown in Figure 2.
source share