Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Seaborn pairplot data not shown

I decided to try out Seaborn's pairplot, but the following line of code (https://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.pairplot.html) is giving me a plot without the data appearing:

>>> import matplotlib.pyplot as plt
>>> import seaborn as sns; sns.set(style="ticks", color_codes=True)
>>> sns.set(font='monospace')
>>> iris = sns.load_dataset("iris")
>>> g = sns.pairplot(iris)
>>> plt.show()

empty pairplot of iris dataset

What is going on with my plot?

like image 710
AgnesianOperator Avatar asked Nov 09 '22 17:11

AgnesianOperator


1 Answers

You have encountered a bug in matplotlib 1.3. The solution is to upgrade your matplotlib.

like image 89
mwaskom Avatar answered Nov 14 '22 23:11

mwaskom