Matplotlib.pyplot.hist() very slow

前端 未结 8 2002
孤独总比滥情好
孤独总比滥情好 2021-01-11 11:37

I\'m plotting about 10,000 items in an array. They are of around 1,000 unique values.

The plotting has been running half an hour now. I made sure rest of the code wo

8条回答
  •  醉梦人生
    2021-01-11 12:17

    Importing seaborn somewhere in the code may cause pyplot.hist to take a really long time.

    If the problem is seaborn, it can be solved by resetting the matplotlib settings:

    import seaborn as sns
    sns.reset_orig()
    

提交回复
热议问题