Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

custom point annotation pyplot scatter

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]))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #custom #point #annotation #pyplot #scatter
ADD COMMENT
Topic
Name
7+9 =