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).
![enter image description here](https://fooobar.com//img/f1ba83b96887cc79e2c692b09ee7fd7e.png)
How to return to the previous behavior (see image below) or to a consistent font layout?
![enter image description here](https://fooobar.com//img/e70adf842d4ed634a7ad845019433682.png)
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:
![enter image description here](https://fooobar.com/undefined)
The resulting plot with an older version (still a bit different, maybe due to some latex differences):
![enter image description here](https://fooobar.com//img/9d5e32d616db2256d9d9f5e848c88bc6.png)
But then again, the desired result is what is obtained from an older version of matplotlib and shown in Figure 2.
source share