@@ -217,7 +217,7 @@ def getNetPyNE2DNetPlot(self):
217217 fig = analysis .plot2Dnet (showFig = False , ** args )
218218 if fig == - 1 :
219219 return fig
220- return ui .getSVG (fig )
220+ return ui .getSVG (fig ). __str__ ()
221221
222222 def getNetPyNEShapePlot (self ):
223223 args = self .getPlotSettings ('plotShape' )
@@ -233,14 +233,14 @@ def getNetPyNEConnectionsPlot(self):
233233 fig = analysis .plotConn (showFig = False , ** args )
234234 if fig == - 1 :
235235 return fig
236- return ui .getSVG (fig )
236+ return ui .getSVG (fig ). __str__ ()
237237
238238 def getNetPyNERasterPlot (self ):
239239 args = self .getPlotSettings ('plotRaster' )
240240 fig = analysis .plotRaster (showFig = False , ** args )
241241 if fig == - 1 :
242242 return fig
243- return ui .getSVG (fig )
243+ return ui .getSVG (fig ). __str__ ()
244244
245245 def getNetPyNETracesPlot (self ):
246246 args = self .getPlotSettings ('plotTraces' )
@@ -276,7 +276,7 @@ def getNetPyNEGrangerPlot(self):
276276 return fig
277277 else :
278278 fig = fig [- 1 ]
279- return ui .getSVG (fig )
279+ return ui .getSVG (fig ). __str__ ()
280280
281281 def getNetPyNERatePSDPlot (self ):
282282 args = self .getPlotSettings ('plotRatePSD' )
@@ -296,7 +296,7 @@ def getNetPyNELFPTimeSeriesPlot(self):
296296 if fig == - 1 :
297297 return fig
298298 else :
299- return ui .getSVG (fig [0 ][0 ])
299+ return ui .getSVG (fig [0 ][0 ]). __str__ ()
300300
301301 def getNetPyNELFPPSDPlot (self ):
302302 args = self .getPlotSettings ('plotLFP' )
@@ -340,7 +340,7 @@ def getNetPyNERxDConcentrationPlot(self):
340340 if fig == - 1 :
341341 return fig
342342 else :
343- return ui .getSVG (fig )
343+ return ui .getSVG (fig ). __str__ ()
344344
345345 def getAvailablePops (self ):
346346 return netParams .popParams .keys ()
0 commit comments