成人视屏在线观看-国产99精品-国产精品1区2区-欧美一级在线观看-国产一区二区日韩-色九九九

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

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

瀏覽:107日期: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 編程
相關文章:
主站蜘蛛池模板: 国产在线观看一区二区三区四区 | 99精品一区二区三区 | tom影院亚洲国产日本一区 | 国产高清在线看免费视频观 | 成人精品免费网站 | 久草资源在线 | 操操操网| 欧美巨乳在线观看 | 一区二区精品在线 | 免费的毛片 | a毛片视频 | 日韩欧美精品在线观看 | 狼人总合狼人综合 | 久久精品呦女 | 亚洲伊人成人 | 亚洲精品专区一区二区三区 | 日本三级视频在线 | 国产精品亚洲高清一区二区 | 国产成人看片免费视频观看 | 老外黑人欧美一级毛片 | 欧美成人免费看片一区 | 香蕉超级碰碰碰97视频蜜芽 | 久草国产视频 | 免费国内精品久久久久影院 | 成人国产永久福利看片 | 精品久久久久久国产 | 国产成人免费全部网站 | 操碰91 | 欧美精品hdvideosex4k | 亚洲精品99久久一区二区三区 | 一本一本久久a久久精品综合麻豆 | 欧美精品黄页免费高清在线 | 免费观看日本视频 | 国产成人av性色在线影院 | 欧美整片在线 | 国产精品久久精品 | 萌白酱在线喷水福利视频 | 亚洲观看视频 | 欧美 亚洲 另类 自拍 在线 | 日韩精品免费视频 | 欧美特黄aaaaaa |