ajdewald
ajdewald

Reputation: 51

Seaborn tutorial run without errors but no plots appear

I am running the seaborn tutorial from the seaborn site, and I don't see any plots. I am running this in idle, and I see python launch, but no graphs appear. Tutorial code included below for reference

    import numpy as np
    import pandas as pd
    import seaborn as sns
    import matplotlib.pyplot as plt
    from scipy import stats
    sns.set(color_codes=True)
    x = np.random.normal(size=100)
    sns.distplot(x);

Upvotes: 0

Views: 318

Answers (1)

Nicolas Gervais
Nicolas Gervais

Reputation: 36584

Just add plt.show() and it will pop up

Upvotes: 1

Related Questions