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 19, 2015
1 parent 7f94cf7 commit 7422857
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 7422857

Please sign in to comment.