Skip to content

Commit

Permalink
disable mpld3.show
Browse files Browse the repository at this point in the history
  • Loading branch information
hrani committed Dec 24, 2018
1 parent 29f54ed commit f0994b3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions findSim.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,12 @@ def displayPlots( self, fname, modelLookup, stim, hideSubplots, exptType ):
elms = modelLookup[i]
for j in elms:
pp = PlotPanel( self, exptType, xlabel = j.name +'('+stim.quantityUnits+')' )
pp.plotme( fname, pp.ylabel, joinSimPoints = True )
#pp.plotme( fname, pp.ylabel, joinSimPoints = True )
try:
pp.plotme( fname, pp.ylabel, joinSimPoints = True )
except Exception as e:
print('Warning: displayPlot: Failed to plot '
'%s due to "%s"' % (fname,e))
elif "barchart" in exptType:
for i in self.entities:
elms = modelLookup[i]
Expand Down Expand Up @@ -1610,9 +1615,9 @@ def innerMain( script, modelFile = "model/synSynth7.g", dumpFname = "", paramFna
pyplot.figure(1)
i.displayPlots( script, model.modelLookup, stims[0], hideSubplots, expt.exptType )

#pyplot.show()
pyplot.show()
pyplot_fig = mpld3.fig_to_html(pyplot.figure(1))
mpld3.show()
#mpld3.show()

moose.delete( modelId )
if moose.exists( '/library' ):
Expand Down

0 comments on commit f0994b3

Please sign in to comment.