亚洲免费在线视频-亚洲啊v-久久免费精品视频-国产精品va-看片地址-成人在线视频网

您的位置:首頁技術(shù)文章
文章詳情頁

python的scatter中color為什么不能設(shè)置每個(gè)點(diǎn)的顏色

瀏覽:109日期: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是指的一系列的點(diǎn),然后用range()生成的一個(gè)數(shù)字列表,并且使用顏色映射,但是在運(yùn)行的時(shí)候,報(bào)錯(cuò)ValueError: Invalid RGBA argument: 0用的是python3我想問一下scatter里面的color參數(shù)到底如何能夠設(shè)置每個(gè)點(diǎn)

問題解答

回答1:

下面是文檔中對(duì)scatter的參數(shù)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.

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

標(biāo)簽: Python 編程
相關(guān)文章:
主站蜘蛛池模板: 中文字幕一区二区小泽玛利亚 | 中国大陆一级毛片 | 萌白酱香蕉白丝护士服喷浆 | 韩国免又爽又刺激激情视频 | 国产成人自拍在线 | 国内成人自拍视频 | 久久久久亚洲日日精品 | 亚洲天堂国产 | 国产精品成久久久久三级 | 成人久久网站 | 久久是精品 | 国产欧美自拍 | 国产精品美女免费视频大全 | 国产日韩精品一区二区 | www欧美在线观看 | 日韩加勒比 | 99国产精品免费观看视频 | 成人免费视频一区 | 日本精品视频在线播放 | 色综合a | 亚洲国产欧美精品一区二区三区 | 亚洲精品91香蕉综合区 | 亚洲免费在线观看视频 | 精品久久久久久影院免费 | 日本成年人视频网站 | 国产看片视频 | 成人男女视频 | 欧美区在线 | 欧美成人tv在线观看免费 | 欧美一级视频免费看 | 色视频在线观看免费 | 欧美俄罗斯一级毛片 | 久久精品国产精品亚洲艾 | 91香蕉国产线在线观看免费 | 免费看欧美一级a毛片 | 国产在线一区二区 | 欧美精品自拍 | 日本一在线中文字幕天堂 | 99久久免费中文字幕精品 | 欧美久久亚洲精品 | 欧美色操|