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_ |
|
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