Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fa5142a

Browse filesBrowse files
committed
Deprecate WX non agg backend
1 parent bcee6ac commit fa5142a
Copy full SHA for fa5142a

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

‎lib/matplotlib/backends/backend_wx.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_wx.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
from matplotlib.backend_bases import _has_pil
3636

3737
from matplotlib._pylab_helpers import Gcf
38-
from matplotlib.cbook import is_string_like, is_writable_file_like
38+
from matplotlib.cbook import (is_string_like, is_writable_file_like,
39+
warn_deprecated)
3940
from matplotlib.figure import Figure
4041
from matplotlib.path import Path
4142
from matplotlib.transforms import Affine2D
@@ -188,6 +189,11 @@ def __init__(self, bitmap, dpi):
188189
"""
189190
Initialise a wxWindows renderer instance.
190191
"""
192+
warn_deprecated('2.0', message="The WX backend is "
193+
"deprecated. It's untested "
194+
"and will be removed in Matplotlib 2.2. "
195+
"Use the WXAgg backend instead.",
196+
alternative='WXAgg')
191197
RendererBase.__init__(self)
192198
DEBUG_MSG("__init__()", 1, self)
193199
self.width = bitmap.GetWidth()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.