ValueError: RGBA sequence should have length 3 or 4
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
<ipython-input-73-e5ecdeb96d16> in <module>()
23 print(label[0])
24
---> 25 plt.scatter(data[:,0], data[:,1], c=label,cmap="RdBu", vmin=-.2, vmax=1.2, edgecolor="white")
26 #plt.scatter(X[0, :], X[1, :], c=np.squeeze(Y), s=40, cmap=plt.cm.Spectral);
27 plt.show()
D:\program\anaconda3\lib\site-packages\matplotlib\pyplot.py in scatter(x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, verts, edgecolors, hold, data, **kwargs)
3355 vmin=vmin, vmax=vmax, alpha=alpha,
3356 linewidths=linewidths, verts=verts,
-> 3357 edgecolors=edgecolors, data=data, **kwargs)
3358 finally:
3359 ax._hold = washold
D:\program\anaconda3\lib\site-packages\matplotlib\__init__.py in inner(ax, *args, **kwargs)
1708 warnings.warn(msg % (label_namer, func.__name__),
1709 RuntimeWarning, stacklevel=2)
-> 1710 return func(ax, *args, **kwargs)
1711 pre_doc = inner.__doc__
1712 if pre_doc is None:ValueError: RGBA sequence should have length 3