Pycharm does not show plot

后端 未结 25 1096
鱼传尺愫
鱼传尺愫 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:38

    Soon after calling

    plt.imshow() 
    

    call

    plt.show(block = True)
    

    You will get the matplotlib popup with the image.

    This is a blocking way. Further script will not run until the pop is closed.

提交回复
热议问题