Matplotlib plots not displaying in sublimetext

前端 未结 5 2191
情话喂你
情话喂你 2020-12-09 04:30

I\'ve recently started using sublimetext 2, however I noticed today that the plt.show() function doesn\'t seem to work when run within sublimetext.

If

5条回答
  •  盖世英雄少女心
    2020-12-09 05:26

    I had a similar issue under Ubuntu. I was trying to plot a pandas DataFrame like this:

    df = pandas.DataFrame([*range(5)])
    df.plot()
    

    But the plot did not show. Turns out you need to do plt.show(), as discussed here.

提交回复
热议问题