回答編集履歴

1

2022/01/24 03:38

投稿

melian
melian

スコア19825

test CHANGED
@@ -46,4 +46,15 @@
46
46
  #1 0.5 0.5 4.0
47
47
  #2 23.5 12.5 6.0
48
48
  #3 68.5 27.5 8.0
49
+
50
+ # draw heatmap
51
+ import seaborn as sns
52
+ import matplotlib.pyplot as plt
53
+
54
+ sns.set_theme()
55
+ h = sns.heatmap(dfx.pivot(1, 0, 2), cmap='cool')
56
+ h.invert_yaxis()
57
+ h.set(xlabel='X', ylabel='Y')
58
+ plt.show()
49
59
  ```
60
+ ![figure](https://ddjkaamml8q8x.cloudfront.net/questions/2022-01-24/dfe4df8f-c59e-459d-a8ed-cb06c814dc67.png)