Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Processing] Fix bug with displaying result graphs by adding <html> t…
…ags.
  • Loading branch information
radosuav committed Apr 21, 2015
1 parent 8c1ee0c commit c246fec
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/BarPlot.py
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/MeanAndStdDevPlot.py
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/PolarPlot.py
Expand Up @@ -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()
Expand Up @@ -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()
Expand Up @@ -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()
Expand Up @@ -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.