Skip to content

Commit c246fec

Browse files
author
radosuav
committedApr 21, 2015
[Processing] Fix bug with displaying result graphs by adding <html> tags.
1 parent 8c1ee0c commit c246fec

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed
 

‎python/plugins/processing/algs/qgis/BarPlot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ def processAlgorithm(self, progress):
7474
plotFilename = output + '.png'
7575
lab.savefig(plotFilename)
7676
f = open(output, 'w')
77-
f.write('<img src="' + plotFilename + '"/>')
77+
f.write('<html><img src="' + plotFilename + '"/></html>')
7878
f.close()

‎python/plugins/processing/algs/qgis/MeanAndStdDevPlot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ def processAlgorithm(self, progress):
8484
plotFilename = output + '.png'
8585
lab.savefig(plotFilename)
8686
f = open(output, 'w')
87-
f.write('<img src="' + plotFilename + '"/>')
87+
f.write('<html><img src="' + plotFilename + '"/></html>')
8888
f.close()

‎python/plugins/processing/algs/qgis/PolarPlot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ def processAlgorithm(self, progress):
7878
plotFilename = output + '.png'
7979
lab.savefig(plotFilename)
8080
f = open(output, 'w')
81-
f.write('<img src="' + plotFilename + '"/>')
81+
f.write('<html><img src="' + plotFilename + '"/></html>')
8282
f.close()

‎python/plugins/processing/algs/qgis/RasterLayerHistogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ def processAlgorithm(self, progress):
8787
plotFilename = outputplot + '.png'
8888
lab.savefig(plotFilename)
8989
f = open(outputplot, 'w')
90-
f.write('<img src="' + plotFilename + '"/>')
90+
f.write('<html><img src="' + plotFilename + '"/></html>')
9191
f.close()

‎python/plugins/processing/algs/qgis/VectorLayerHistogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ def processAlgorithm(self, progress):
7272
plotFilename = output + '.png'
7373
lab.savefig(plotFilename)
7474
f = open(output, 'w')
75-
f.write('<img src="' + plotFilename + '"/>')
75+
f.write('<html><img src="' + plotFilename + '"/></html>')
7676
f.close()

‎python/plugins/processing/algs/qgis/VectorLayerScatterplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ def processAlgorithm(self, progress):
7575
plotFilename = output + '.png'
7676
lab.savefig(plotFilename)
7777
f = open(output, 'w')
78-
f.write('<img src="' + plotFilename + '"/>')
78+
f.write('<html><img src="' + plotFilename + '"/></html>')
7979
f.close()

0 commit comments

Comments
 (0)
Please sign in to comment.