Skip to content
Permalink
Browse files

[Processing] Fix bug with displaying result graphs by adding <html> t…

…ags.
  • Loading branch information
radosuav
radosuav committed Apr 21, 2015
1 parent 8c1ee0c commit c246fec2dfd3cc7efa8534df00ef6814b2517c67
@@ -74,5 +74,5 @@ def processAlgorithm(self, progress):
plotFilename = output + '.png'
lab.savefig(plotFilename)
f = open(output, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()
@@ -84,5 +84,5 @@ def processAlgorithm(self, progress):
plotFilename = output + '.png'
lab.savefig(plotFilename)
f = open(output, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()
@@ -78,5 +78,5 @@ def processAlgorithm(self, progress):
plotFilename = output + '.png'
lab.savefig(plotFilename)
f = open(output, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()
@@ -87,5 +87,5 @@ def processAlgorithm(self, progress):
plotFilename = outputplot + '.png'
lab.savefig(plotFilename)
f = open(outputplot, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()
@@ -72,5 +72,5 @@ def processAlgorithm(self, progress):
plotFilename = output + '.png'
lab.savefig(plotFilename)
f = open(output, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()
@@ -75,5 +75,5 @@ def processAlgorithm(self, progress):
plotFilename = output + '.png'
lab.savefig(plotFilename)
f = open(output, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()

0 comments on commit c246fec

Please sign in to comment.
You can’t perform that action at this time.