亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

您的位置:首頁技術文章
文章詳情頁

python的scatter中color為什么不能設置每個點的顏色

瀏覽:97日期:2022-06-30 15:29:07

問題描述

plt.scatter(x=rw.x_value,y=rw.y_value,c=point_number,colormap=plt.cm.Blues,gecolors=’none’,s=15)

其中point_number是指的一系列的點,然后用range()生成的一個數字列表,并且使用顏色映射,但是在運行的時候,報錯ValueError: Invalid RGBA argument: 0用的是python3我想問一下scatter里面的color參數到底如何能夠設置每個點

問題解答

回答1:

下面是文檔中對scatter的參數c的說明:c : color, sequence, or sequence of color, optional, default: ‘b’c can be a single color format string, or a sequence of color specifications of length N, or a sequence of N numbers to be mapped to colors using the cmap and norm specified via kwargs (see below). Note that c should not be a single numeric RGB or RGBA sequence because that is indistinguishable from an array of values to be colormapped. c can be a 2-D array in which the rows are RGB or RGBA, however, including the case of a single row to specify the same color for all points.

可見可以傳入一個序列(list之類的)

標簽: Python 編程
相關文章:
主站蜘蛛池模板: 欧美αv日韩αv另类综合 | 黄色网页在线免费观看 | 九九热视频精品在线观看 | 亚洲最大的视频网站 | 国产在线91区精品 | 青青草国产精品欧美成人 | 黄色片日本网站 | 中国xx爽69护士| 草草视频在线免费观看 | 日本aaa成人毛片 | 国产成人a∨麻豆精品 | 大插香蕉 | 国产高清晰在线播放 | 久久午夜激情 | 怡红院色图 | 香蕉99国内自产自拍视频 | 三级免费毛片 | 国产日韩欧美亚洲青青草原 | 黄色网址在线免费播放 | 国产欧美另类久久久精品免费 | 女人精69xxxxx免费无毒 | 亚洲成人在线观看视频 | 国产精品久久久久国产精品 | 久久ri精品高清一区二区三区 | 91在线精品免费观看 | 娇喘呻吟福利视频在线观看 | 久久精品国产72国产精福利 | 欧美日本在线播放 | 热久久国产欧美一区二区精品 | 风间由美理论片在线观看 | 日本一级片在线观看 | 香港三级欧美国产精品 | 草草影院地址ccyycom浮力影院37 草草影院欧美 | 免费观看欧美一区二区三区 | 国产成+人+综合+欧美 亚洲 | 美国一级毛片∞ | 中国美女一级黄色片 | 91福利一区二区三区 | 欧美黄色大片免费观看 | 亚洲婷婷综合中文字幕第一页 | 久久青草精品免费资源站 |