午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

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

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

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

問(wèn)題描述

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我想問(wèn)一下scatter里面的color參數(shù)到底如何能夠設(shè)置每個(gè)點(diǎn)

問(wèn)題解答

回答1:

下面是文檔中對(duì)scatter的參數(shù)c的說(shuō)明: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)文章:
主站蜘蛛池模板: av免费播放网站 | 亚洲少妇激情 | 亚洲欧美在线综合 | 中文字幕日本 | 国内自拍xxxx18 | 免费在线观看av网站 | 中文字幕亚洲精品在线 | 国产一区二| 深爱激情综合网 | 国产黄色免费在线观看 | 黄色片一区二区 | 欧美特级视频 | 国产女av | 精品久久久中文字幕 | 九九热精品视频在线观看 | 久久精品一二 | 波多一区二区 | 蜜臀99久久精品久久久久小说 | 最新中文字幕在线播放 | 天天色天| 四虎成人永久免费视频 | 久久六六 | 97超碰在线免费 | 精品在线免费视频 | 精品小视频在线观看 | 亚洲欧美一区二区三区情侣bbw | 天天干天天舔 | 国产精品永久 | 中文字幕在线2018 | 福利在线小视频 | 中文字幕久久久 | 男人天堂网站 | 69精品久久 | 日批视频在线 | 久久亚洲国产精品 | 日韩欧美三级视频 | 99爱精品视频 | 99色视频| 国产精品久久久久久久久免费 | 成人免费一级视频 | 欧美综合区|