Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use warn_deprecated
  • Loading branch information
ahaldane committed Jun 23, 2015
commit d631dc17c8d4037fb359deefd8e607d2c0651f44
9 changes: 5 additions & 4 deletions lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
import matplotlib.tight_bbox as tight_bbox
import matplotlib.textpath as textpath
from matplotlib.path import Path
from matplotlib.cbook import mplDeprecation
from matplotlib.cbook import mplDeprecation, warn_deprecated
import matplotlib.backend_tools as tools

try:
Expand Down Expand Up @@ -2332,9 +2332,10 @@ def on_press(event):

"""
if s == 'idle_event':
warnings.warn("idle_event is only implemented for the wx backend, "
"and will be removed in matplotlib 2.1. Use the "
"animations module instead.", mplDeprecation)
warn_deprecated(1.5,
"idle_event is only implemented for the wx backend, and will "
"be removed in matplotlib 2.1. Use the animations module "
"instead.")

return self.callbacks.connect(s, func)

Expand Down