使用matplotlib和绘图色标创建自己的颜色图
cmap = matplotlib.colors.ListedColormap(["red","violet","blue"], name='from_list', N=None)m = cm.ScalarMappable(norm=norm, cmap=cmap)
colors = itertools.cycle([m.to_rgba(1.22), ..])
for i in range(0, len(array_dg)): plt.plot(array_dg[i], markers.next(),alpha=alpha[i], c=colors.next())
相关分类