网站修改图片链接,深圳企易科技有限公司,网站建设方案免费,企业培训机构有哪些我试图用x和y网格创建散点图#xff0c;其中每个点通过预先指定的值获得颜色#xff1a;{x: 1, y: 2, value: n}我有一个x和y的列表和另一个值列表#xff0c;尝试使用这个#xff1a;^{pr2}$错误#xff1a;Traceback (most recent call last):File C:\python3.6.6…我试图用x和y网格创建散点图其中每个点通过预先指定的值获得颜色{x: 1, y: 2, value: n}我有一个x和y的列表和另一个值列表尝试使用这个^{pr2}$错误Traceback (most recent call last):File C:\python3.6.6\lib\site-packages\matplotlib\colors.py, line 158, in to_rgbargba _colors_full_map.cache[c, alpha]KeyError: (1.0986122886681098, None)During handling of the above exception, another exception occurred:Traceback (most recent call last):File C:\python3.6.6\lib\site-packages\matplotlib\axes\_axes.py, line 4210, in scattercolors mcolors.to_rgba_array(c)File C:\python3.6.6\lib\site-packages\matplotlib\colors.py, line 259, in to_rgba_arrayresult[i] to_rgba(cc, alpha)File C:\python3.6.6\lib\site-packages\matplotlib\colors.py, line 160, in to_rgbargba _to_rgba_no_colorcycle(c, alpha)File C:\python3.6.6\lib\site-packages\matplotlib\colors.py, line 211, in _to_rgba_no_colorcycleraise ValueError(Invalid RGBA argument: {!r}.format(orig_c))ValueError: Invalid RGBA argument: 1.0986122886681098During handling of the above exception, another exception occurred:Traceback (most recent call last):File C:/Users/amit neumark/Documents/עמית/alpha/grbs data/grbs/find_burst_location.py, line 168, in main()File C:/Users/amit neumark/Documents/עמית/alpha/grbs data/grbs/find_burst_location.py, line 161, in mainra2, dec2 chi_square(model, relations)File C:/Users/amit neumark/Documents/עמית/alpha/grbs data/grbs/find_burst_location.py, line 33, in chi_squarecreate_plot(sums)File C:/Users/amit neumark/Documents/עמית/alpha/grbs data/grbs/find_burst_location.py, line 134, in create_plotplt.scatter(x, y, ccolors)File C:\python3.6.6\lib\site-packages\matplotlib\pyplot.py, line 2793, in scattervertsverts, edgecolorsedgecolors, datadata, **kwargs)File C:\python3.6.6\lib\site-packages\matplotlib\__init__.py, line 1785, in innerreturn func(ax, *args, **kwargs)File C:\python3.6.6\lib\site-packages\matplotlib\axes\_axes.py, line 4223, in scatter.format(ncn_elem, xsx.size, ysy.size)ValueError: c argument has 64800 elements, which is not acceptable for use with x with size 64800, y with size 64800.