Skip to content

Commit db63746

Browse files
author
Syed Nasim
committed
Added legend in rich preview
1 parent b16ca2c commit db63746

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

preview.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def richprev(clusters):
4545
yvals.append(y['y'])
4646

4747

48-
plt.scatter(xvals,yvals, color=clrs[i])
48+
plt.scatter(xvals,yvals, color=clrs[i], label=cluster['title'])
4949
i+=1
50+
plt.legend(loc='upper left')
5051
plt.show()

0 commit comments

Comments
 (0)