Scatter plot with colors

import matplotlib.pyplot as plt
import numpy as np
x = np.random.randint(2, 200, (3,10)) # generate array of 3 * 10 numbers between 2 and 200
x

array([[117, 151, 21, 33, 54, 80, 108, 199, 16, 190],
[197, 93, 9, 92, 123, 33, 26, 163, 10, 26],
[ 83, 199, 19, 171, 199, 61, 56, 25, 52, 197]])

y = np.random.randint(10, 200, (3, 10)) # generate array of 3 * 10 numbers between 10 and 200
y

array([[153, 56, 52, 189, 31, 136, 32, 36, 134, 70],
[ 58, 114, 162, 111, 136, 196, 146, 144, 140, 144],
[184, 22, 149, 103, 49, 73, 60, 94, 168, 140]])

size = np.random.randint(100, 500, (3,10)) # generate array of 3 * 10 numbers between 100 and 500, this is the size of the points
size

array([[300, 207, 381, 389, 294, 433, 115, 393, 295, 287],
[362, 389, 448, 459, 202, 125, 303, 260, 235, 399],
[247, 489, 361, 130, 127, 460, 142, 199, 250, 408]])

colors = plt.cm.Set1.colors
colors

((0.8941176470588236, 0.10196078431372549, 0.10980392156862745),
(0.21568627450980393, 0.49411764705882355, 0.7215686274509804),
(0.30196078431372547, 0.6862745098039216, 0.2901960784313726),
(0.596078431372549, 0.3058823529411765, 0.6392156862745098),
(1.0, 0.4980392156862745, 0.0),
(1.0, 1.0, 0.2),
(0.6509803921568628, 0.33725490196078434, 0.1568627450980392),
(0.9686274509803922, 0.5058823529411764, 0.7490196078431373),
(0.6, 0.6, 0.6))

plt.scatter(x[0], y[0], s=size[0], marker="^", c=colors)
plt.scatter(x[1], y[1], s=size[1], marker="+", c=colors)
plt.scatter(x[2], y[2], s=size[2], marker="o", c=colors)