Discussion:
[Matplotlib-users] Matplotlib vers. 1.5.0 warnings
Virgil Stokes
2015-12-17 15:40:53 UTC
Permalink
I recently upgraded to vers. 1.5.0 and I am now getting some warning messages.
For example:

D:\Python27\lib\site-packages\matplotlib\backend_managers.py:62: UserWarning:
Treat the new Tool classes introduced in v1.5 as experimental for now, the API
will likely change in version 2.1 and perhaps the rcParam as well
'version 2.1 and perhaps the rcParam as well')
D:\Python27\lib\site-packages\matplotlib\backend_tools.py:78: UserWarning: Treat
the new Tool classes introduced in v1.5 as experimental for now, the API will
likely change in version 2.1, and some tools might change name
'version 2.1, and some tools might change name')

How can I keep these messages from being displayed (at least temporarily)?

--V


------------------------------------------------------------------------------
Joshua Klein
2015-12-17 22:53:45 UTC
Permalink
You can use the warnings module from the Python standard Library.

import warnings
warnings.filterwarnings(action='ignore')

This will silence all Python warnings. The signature for
warnings.filterwarnings
<https://docs.python.org/2/library/warnings.html#the-warnings-filter> can
also be used to only suppress some warnings.

On Thu, Dec 17, 2015 at 10:40 AM, Virgil Stokes <***@it.uu.se> wrote:

I recently upgraded to vers. 1.5.0 and I am now getting some warning
Post by Virgil Stokes
messages.
Treat the new Tool classes introduced in v1.5 as experimental for now, the API
will likely change in version 2.1 and perhaps the rcParam as well
'version 2.1 and perhaps the rcParam as well')
D:\Python27\lib\site-packages\matplotlib\backend_tools.py:78: UserWarning: Treat
the new Tool classes introduced in v1.5 as experimental for now, the API will
likely change in version 2.1, and some tools might change name
'version 2.1, and some tools might change name')
How can I keep these messages from being displayed (at least temporarily)?
--V
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
​

Loading...