SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Virgil S. <vs...@it...> - 2015年12月17日 16:04:44
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
From: Joshua K. <mob...@gm...> - 2015年12月17日 22:54:11
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 <vs...@it...> wrote:
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
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
​
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /