Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] display X and Y labels on the scatterplot (fix #12095)
  • Loading branch information
alexbruy committed Apr 10, 2015
1 parent b9f391f commit 864443d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/qgis/VectorLayerScatterplot.py
Expand Up @@ -70,6 +70,8 @@ def processAlgorithm(self, progress):
values = vector.values(layer, xfieldname, yfieldname)
plt.close()
plt.scatter(values[xfieldname], values[yfieldname])
plt.ylabel(yfieldname)
plt.xlabel(xfieldname)
plotFilename = output + '.png'
lab.savefig(plotFilename)
f = open(output, 'w')
Expand Down

0 comments on commit 864443d

Please sign in to comment.