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

Skip to content

Commit f896381

Browse files
committed
Merge pull request #3174 from tacaswell/qt_compat_deprec
MNT : replace and deprecated qt4_compat
2 parents e31863d + 3b67b1d commit f896381

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

doc/api/api_changes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ original location:
5050
- mstream -> `from matplotlib import stream as mstream`
5151
- mtable -> `from matplotlib import table as mtable`
5252

53+
* As part of the refactoring to enable Qt5 support, the module
54+
`matplotlib.backends.qt4_compat` was renamed to
55+
`matplotlib.qt_compat`. `qt4_compat` is deprecated in 1.4 and
56+
will be removed in 1.5.
57+
5358
* The :func:`~matplotlib.pyplot.errorbar` method has been changed such that
5459
the upper and lower limits (*lolims*, *uplims*, *xlolims*, *xuplims*) now
5560
point in the correct direction.

lib/matplotlib/backends/qt4_compat.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import warnings
2+
from matplotlib.cbook import mplDeprecation
3+
_warn_str = ("This module has been deprecated in 1.4 in favor "
4+
"matplotlib.backends.qt_compat\n"
5+
"This module will be removed in 1.5, please update "
6+
"your imports.")
7+
# bulk-imports because we are pretending that file is this file
8+
from .qt_compat import *
9+
10+
11+
warnings.warn(_warn_str, mplDeprecation)

0 commit comments

Comments
 (0)