mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
[Processing] Fix bug with displaying result graphs by adding <html> tags.
This commit is contained in:
parent
8c1ee0c691
commit
c246fec2df
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user