Annotation du point de coutume du tracé de dispersion matplotlib

import matplotlib.pyplot as plt

x = range(10)
y = range(10)
n = [f'Point: {i}' for i in x]

fig, ax = plt.subplots()
fig = plt.scatter(x, y)

for i, txt in enumerate(n):
  ax.annotate(txt, (x[i], y[i]))
Arthur Elskens