ValueError: RGBA sequence should have length 3 or 4

ValueError: RGBA sequence should have length 3 or 4

Cause:

There are multiple features in the data which cannot be displayed with multiple colours due to limited colour provided

#color=['brown','red','green'] # three colors can be used 

#mp.scatter(x="stat",y=["cpu","wait"], color=color, label="DB CPU STATS") # there are more than 3 features 

    raise ValueError("RGBA sequence should have length 3 or 4")
ValueError: RGBA sequence should have length 3 or 4

Solution:

Either remove the parameter color to set the default colour or provide multiple colours as per the total number of features

mp.scatter(x="stat",y=["cpu","wait"], label="DB CPU STATS")

Leave a Reply

Discover more from XscalibaL

Subscribe now to keep reading and get access to the full archive.

Continue reading