10000 MNT : replace and deprecated qt4_compat by tacaswell · Pull Request #3174 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

MNT : replace and deprecated qt4_compat #3174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions doc/api/api_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ original location:
- mstream -> `from matplotlib import stream as mstream`
- mtable -> `from matplotlib import table as mtable`

* As part of the refactoring to enable Qt5 support, the module
`matplotlib.backends.qt4_compat` was renamed to
`matplotlib.qt_compat`. `qt4_compat` is deprecated in 1.4 and
will be removed in 1.5.

* The :func:`~matplotlib.pyplot.errorbar` method has been changed such that
the upper and lower limits (*lolims*, *uplims*, *xlolims*, *xuplims*) now
point in the correct direction.
Expand Down
11 changes: 11 additions & 0 deletions lib/matplotlib/backends/qt4_compat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import warnings
from matplotlib.cbook import mplDeprecation
_warn_str = ("This module has been deprecated in 1.4 in favor "
"matplotlib.backends.qt_compat\n"
"This module will be removed in 1.5, please update "
"your imports.")
# bulk-imports because we are pretending that file is this file
from .qt_compat import *


warnings.warn(_warn_str, mplDeprecation)
0