8000 Deprecate WX non agg backend · matplotlib/matplotlib@5cdaab1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5cdaab1

Browse files
committed
Deprecate WX non agg backend
1 parent c3ed2ee commit 5cdaab1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/matplotlib/backends/backend_wx.py

Lines 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