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

Skip to content

Commit 020e0bf

Browse files
committed
Bugfix in FigureClass support in backend_svg.py.
svn path=/trunk/matplotlib/; revision=2510
1 parent 1a158bb commit 020e0bf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

examples/backend_driver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
'polar_demo.py',
5353
'polar_scatter.py',
5454
'psd_demo.py',
55+
'quiver_demo.py',
5556
'scatter_demo.py',
5657
'scatter_demo2.py',
5758
'simple_plot.py',

lib/matplotlib/backends/backend_svg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
backend_version = __version__
1515

16-
def new_figure_manager(num, *args):
16+
def new_figure_manager(num, *args, **kwargs):
1717
FigureClass = kwargs.pop('FigureClass', Figure)
1818
thisFig = FigureClass(*args)
1919
canvas = FigureCanvasSVG(thisFig)
@@ -72,7 +72,7 @@ def _get_style(self, gc, rgbFace, clippath):
7272
else:
7373
dashes = 'stroke-dasharray: %s; stroke-dashoffset: %f;' % (
7474
' '.join(['%f'%val for val in seq]), offset)
75-
75+
7676
linewidth = gc.get_linewidth()
7777
if linewidth:
7878
return 'style="fill: %s; stroke: %s; stroke-width: %f; ' \

0 commit comments

Comments
 (0)