Pycharm does not show plot

后端 未结 25 1129
鱼传尺愫
鱼传尺愫 2020-12-04 09:13

Pycharm does not show plot from the following code:

import pandas as pd
import numpy as np
import matplotlib as plt

ts = pd.Series(np.random.randn(1000), in         


        
25条回答
  •  误落风尘
    2020-12-04 09:14

    One property need to set for pycharm.

    import matplotlib.pyplot as plt
    
    plt.interactive(False)  #need to set to False
    
    dataset.plot(kind='box', subplots=True, layout=(2,2), sharex=False, sharey=False)
    
    plt.show()
    

提交回复
热议问题