This code:
%matplotlib inline #import numpy as np; np.random.seed(0) import matplotlib.pyplot as plt import seaborn as sns #; sns.set() flights = sns.load_dataset("flights") flights = flights.pivot("month", "year", "passengers") sns.heatmap(flights, annot=True, linewidths=.2, fmt="d") #plt.show()
The result will look like an official result ( See / check it here ):

However, if I turn off inline build and enable plt.show() , the result will look like this:

Ie, there is no annotation, except that one cell and y-label orientation are incorrect if the built-in plotting is disabled . Since this is the only change I made, I think it is a mistake with seaborn that it cannot give consistent results.
Can anyone confirm this? And are there any possible corrections, please?
Update, thanks to Sergey for his feedback, here are my versions of everything that matters:
Python: 3.5.0 |Anaconda 2.4.0 (64-bit)| (default, Dec 1 2015, 11:46:22) [MSC v.1900 64 bit (AMD64)] IPython: 4.0.0 Matplotlib: 1.5.0 Seaborn: 0.6.0
So I think this is a Python3 or Matplotlib: 1.5 issue. Just in case, I'll add a Python3 tag.
thanks
xpt
source share