matplotlib에는 좋은 color table이 많이 있다. 그럼에도 불구하고 인위적으로 만들어야 할 때가 있다.
matplotlib.colors.LinearSegmentedColormap.from_list 은 그럴때 사용할 수 있는 것이다. A라는 색에서 B라는 색으로 적당한 숫자의 색 목록을 만들어 낸다.
matplotlib.colors.LinearSegmentedColormap.from_list("my", ((0.5, 0, 0), (0.5, 0, 1)), N=50)