Skip to content

Commit 7422857

Browse files
committed
[processing] display X and Y labels on the scatterplot (fix #12095)
1 parent 7f94cf7 commit 7422857

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ def processAlgorithm(self, progress):
7070
values = vector.values(layer, xfieldname, yfieldname)
7171
plt.close()
7272
plt.scatter(values[xfieldname], values[yfieldname])
73+
plt.ylabel(yfieldname)
74+
plt.xlabel(xfieldname)
7375
plotFilename = output + '.png'
7476
lab.savefig(plotFilename)
7577
f = open(output, 'w')

0 commit comments

Comments
 (0)