Seaborn教程运行无错误,但未显示任何图

时间:2020-03-11 13:30:42

标签: python matplotlib freetype

我正在从seaborn网站运行seaborn教程,但没有看到任何图。我在空闲状态下运行它,并且看到python启动,但是没有图形出现。下面包含的教程代码供参考

    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);

1 个答案:

答案 0 :(得分:1)

只需添加plt.show(),它将弹出