import matplotlib.pyplot as plt
import matplotlib
matplotlib.rcParams['font.family'] = 'Malgun Gothic'
matplotlib.rcParams['font.size'] = 15
matplotlib.rcParams['axes.unicode_minus'] = False
x = [1, 2, 3]
y = [2, 4, 8]
plt.plot(x, y)
-
plt.plot(x,y, marker='o')
for idx, txt in enumerate(y):
plt.text(x[idx], y[idx], txt)
plt.plot(x,y, marker='o')
for idx, txt in enumerate(y):
plt.text(x[idx], y[idx]+0.3, txt, ha='center', color='blue')