回答編集履歴

1

サンプルのミスを修正

2018/07/10 01:47

投稿

magichan
magichan

スコア15898

test CHANGED
@@ -18,15 +18,15 @@
18
18
 
19
19
 
20
20
 
21
- x = [states.index(x) for x,y in orn_live]
21
+ x = [pref.index(x) for x,y in orn_live]
22
22
 
23
- y = [states.index(y) for x,y in orn_live]
23
+ y = [pref.index(y) for x,y in orn_live]
24
24
 
25
25
 
26
26
 
27
- plt.xticks(range(len(states)), states)
27
+ plt.xticks(range(len(pref)), pref)
28
28
 
29
- plt.yticks(range(len(states)), states)
29
+ plt.yticks(range(len(pref)), pref)
30
30
 
31
31
  plt.scatter(x,y)
32
32