Python/matplotlib : getting rid of matplotlib.mpl warning

前端 未结 4 1326
长情又很酷
长情又很酷 2020-12-16 17:14

I am using matplotlib using python 3.4. When I start my program, I have the following warning message:

C:\\Python34-32bits\\lib\\site-packages\\matplo

4条回答
  •  粉色の甜心
    2020-12-16 17:38

    you can temporarily suppress a warning, when importing

    import warnings
    
    def fxn():
        warnings.warn("deprecated", DeprecationWarning)
    
    with warnings.catch_warnings():
        warnings.simplefilter("ignore")
        fxn()
    

提交回复
热议问题