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

Skip to content

Commit 5705bd8

Browse files
committed
Fixed a small bug in svg backend
svn path=/trunk/matplotlib/; revision=6502
1 parent ad02561 commit 5705bd8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2008-12-06 Fixed a bug in svg backend that new_figure_manager()
2+
ignores keywords arguments such as figsize, etc. -JJL
3+
14
2008-12-05 Fixed a bug that the handlelength of the new legend class
25
set too short when numpoints=1 -JJL
36

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
def new_figure_manager(num, *args, **kwargs):
2929
FigureClass = kwargs.pop('FigureClass', Figure)
30-
thisFig = FigureClass(*args)
30+
thisFig = FigureClass(*args, **kwargs)
3131
canvas = FigureCanvasSVG(thisFig)
3232
manager = FigureManagerSVG(canvas, num)
3333
return manager

0 commit comments

Comments
 (0)