pythonseabornrelplot

Seaborn relplot() doesn't load graph


Hadn't messed with Seaborn in a while, so I was refreshing some basic concepts and came across this. When I load a basic plot using replot(), the graph doesn't load. It stops short from actually opening. However, if I use a scatterplot() instead, it loads just fine. Why? What am I missing?

penguins = sns.load_dataset('penguins')
sns.set(style='darkgrid')
sns.relplot(x='bill_length_mm',
            y='flipper_length_mm',data=penguins)
plt.show()

Using a scatterplot(), the graph loads without a problem.

sns.set(style='darkgrid')
sns.scatterplot(x='bill_length_mm',
            y='flipper_length_mm',data=penguins)
plt.show()

Solution

  • Not sure what to tell you, it works fine for me. Do your other outputs match mine?

    example Image