Marine pipe data not shown

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

>>> 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 twin aperture dataset

What happens to my plot?

+5
source share
3 answers

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

+2
source

If you can’t update matplotlib for some reason, this is a workaround that generates almost needed graphics in matplotlib 1.3.1:

 g = sns.PairGrid(iris) def scatter_fake_diag(x, y, *a, **kw): if x.equals(y): kw["color"] = (0, 0, 0, 0) plt.scatter(x, y, *a, **kw) g.map(scatter_fake_diag) g.map_diag(plt.hist) 

workaroung_figure

0
source

You can try:

  • Remove the ship, and then reinstall the ship
  • Remove matplotlib and seaborn, then reinstall matplotlib, then reinstall the ship.
-1
source

Source: https://habr.com/ru/post/1245596/


All Articles