##// END OF EJS Templates
Fix misuse of matplotlib private function that was causing redraw problems.
Michael Droettboom -
Show More
@@ -95,7 +95,7 b' def svg_from_canvas(canvas):'
95 """ Return a string containing the SVG representation of a FigureCanvasSvg.
95 """ Return a string containing the SVG representation of a FigureCanvasSvg.
96 """
96 """
97 string_io = StringIO()
97 string_io = StringIO()
98 canvas.print_svg(string_io)
98 canvas.print_figure(string_io, format='svg')
99 return string_io.getvalue()
99 return string_io.getvalue()
100
100
101
101
General Comments 0
You need to be logged in to leave comments. Login now