回答編集履歴

1

説明追加

2020/01/08 10:46

投稿

magichan
magichan

スコア15898

test CHANGED
@@ -1,6 +1,10 @@
1
1
  colormapを自作するとよいのではないでしょうか。
2
2
 
3
3
 
4
+
5
+ 今回の様に(グラデーションなどを使わない)単に色を並べたColormapを作成したいのであれば `ListedColormap()`を使うのが簡単です。
6
+
7
+ [https://matplotlib.org/3.1.0/api/_as_gen/matplotlib.colors.ListedColormap.html](https://matplotlib.org/3.1.0/api/_as_gen/matplotlib.colors.ListedColormap.html)
4
8
 
5
9
 
6
10