matplotlib crashing Python

后端 未结 5 1474
不思量自难忘°
不思量自难忘° 2021-01-13 16:21

I\'m new to Python and matplotlib. A simple script I wrote is crashing and I was able to reproduce the crash with the following code:

import matplotlib.pyplo         


        
5条回答
  •  孤独总比滥情好
    2021-01-13 16:57

    This could be issue with python 3.x

    I have tried with python 2.7 on my windows machine and it works perfectly fine!

    You can either downgrade your python to 2.7 or if you feel its too late to do why dont you give it a try to call close()

    Import matplotlib
    matplotlib.use('wxAgg')
    Import matplotlib.pyplot as plt
    # your scripts
    plt.close('all')
    

提交回复
热议问题