Skip to content
Merged
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
BUG : fix qt4 backends
in 1889c04 I missed some subtleties of
how the imports were working.  This reverts the change that breaks qt4.
  • Loading branch information
tacaswell committed Jun 27, 2014
commit 4bb0466faeb57b1eb8e0450366971b979fb98c4f
13 changes: 12 additions & 1 deletion lib/matplotlib/backends/backend_qt4agg.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import matplotlib
from matplotlib.figure import Figure

from .backend_qt5agg import new_figure_manager, NavigationToolbar2QTAgg
from .backend_qt5agg import NavigationToolbar2QTAgg
from .backend_qt5agg import FigureCanvasQTAggBase

from .backend_agg import FigureCanvasAgg
Expand All @@ -36,6 +36,17 @@
_decref.restype = None


def new_figure_manager(num, *args, **kwargs):
"""
Create a new figure manager instance
"""
if DEBUG:
print('backend_qt4agg.new_figure_manager')
FigureClass = kwargs.pop('FigureClass', Figure)
thisFig = FigureClass(*args, **kwargs)
return new_figure_manager_given_figure(num, thisFig)


def new_figure_manager_given_figure(num, figure):
"""
Create a new figure manager instance for the given figure.
Expand Down