matlpotcolor参数可以是十六进制,也可以是颜色描述的字符串。

下面是字符串描述的颜色表。为了颜色间要有区分度。同时要求颜色比较明显,特意选择一些比较有代表性的颜色,以供使用(颜色由于个人需要,除去了红色和绿色)。

在这里插入图片描述

colors = ["rosybrown","indianred",
         "darkred", "tomato","sienna","peru",
         "darkorange", "darkgoldenrod","olive","gold","yellowgreen",
         "darkslategray","blue","cadetblue","dodgerblue",
         "royalblue","darkslateblue","indigo", "violet",
         "m","fuchsia","deeppink","crimson"
    ]
Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐