Skip to content

Commit 864443d

Browse files
committed
[processing] display X and Y labels on the scatterplot (fix #12095)
1 parent b9f391f commit 864443d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

+2
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)