回答編集履歴
1
Update
answer
CHANGED
@@ -11,10 +11,11 @@
|
|
11
11
|
global i, j, cnt
|
12
12
|
x, y = event.xdata, event.ydata
|
13
13
|
plt.plot(
|
14
|
-
|
14
|
+
[x], [y], color=colors[j], marker=markers[i], markersize=12)
|
15
15
|
i, j = (i + 1) % len(markers), (j + 1) % len(colors)
|
16
16
|
cnt += 1
|
17
|
+
leg = plt.legend(
|
17
|
-
|
18
|
+
[f'クリック回数 {cnt}'], handletextpad=-2.0, loc='upper right')
|
18
19
|
leg.legendHandles[0].set_visible(False)
|
19
20
|
plt.draw()
|
20
21
|
|