Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
missing backends that called figuremanager with num
  • Loading branch information
fariza committed Nov 27, 2013
commit e0bc1221566f3ed56b3f4828eb95dced397a731b
3 changes: 2 additions & 1 deletion lib/matplotlib/backends/backend_agg.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ def new_figure_manager_given_figure(num, figure):
Create a new figure manager instance for the given figure.
"""
canvas = FigureCanvasAgg(figure)
manager = FigureManagerBase(canvas, num)
manager = FigureManagerBase(canvas)
manager.num = num
return manager


Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/backends/backend_cairo.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ def new_figure_manager_given_figure(num, figure):
Create a new figure manager instance for the given figure.
"""
canvas = FigureCanvasCairo(figure)
manager = FigureManagerBase(canvas, num)
manager = FigureManagerBase(canvas)
manager.num = num
return manager


Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/backends/backend_cocoaagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ def startWithBundle_(self, bundle):

class FigureManagerCocoaAgg(FigureManagerBase):
def __init__(self, canvas, num):
FigureManagerBase.__init__(self, canvas, num)
FigureManagerBase.__init__(self, canvas)
self.num = num

try:
WMEnable('Matplotlib')
Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/backends/backend_gdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ def new_figure_manager_given_figure(num, figure):
Create a new figure manager instance for the given figure.
"""
canvas = FigureCanvasGDK(figure)
manager = FigureManagerBase(canvas, num)
manager = FigureManagerBase(canvas)
manager.num = num
return manager


Expand Down