I want to add color to different plots in scatter

I have created the plot but it has same color

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
 r = result.toPandas()
 for i in range (2181):
    a = np.append (a, r.iloc[i,0][0])
    b = np.append (b, r.iloc[i,0][1])

 plt.scatter(a, b)

I got my scatter plot but I need different colors in it my a and b are two different arrays which have some input but the color is similar for both of them

0 Answers