[Processing] Fix bug with displaying result graphs by adding <html> tags.

This commit is contained in:
radosuav 2015-04-21 10:31:14 +02:00
parent 8c1ee0c691
commit c246fec2df
6 changed files with 6 additions and 6 deletions

View File

@ -74,5 +74,5 @@ class BarPlot(GeoAlgorithm):
plotFilename = output + '.png'
lab.savefig(plotFilename)
f = open(output, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()

View File

@ -84,5 +84,5 @@ class MeanAndStdDevPlot(GeoAlgorithm):
plotFilename = output + '.png'
lab.savefig(plotFilename)
f = open(output, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()

View File

@ -78,5 +78,5 @@ class PolarPlot(GeoAlgorithm):
plotFilename = output + '.png'
lab.savefig(plotFilename)
f = open(output, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()

View File

@ -87,5 +87,5 @@ class RasterLayerHistogram(GeoAlgorithm):
plotFilename = outputplot + '.png'
lab.savefig(plotFilename)
f = open(outputplot, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()

View File

@ -72,5 +72,5 @@ class VectorLayerHistogram(GeoAlgorithm):
plotFilename = output + '.png'
lab.savefig(plotFilename)
f = open(output, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()

View File

@ -75,5 +75,5 @@ class VectorLayerScatterplot(GeoAlgorithm):
plotFilename = output + '.png'
lab.savefig(plotFilename)
f = open(output, 'w')
f.write('<img src="' + plotFilename + '"/>')
f.write('<html><img src="' + plotFilename + '"/></html>')
f.close()