Constructed a graph on three points in jupiter notebook
import matplotlib.pyplot as plt import pandas as pd %matplotlib inline table = [ [0,-2,2], [3,0,6], ['A(0;3)','B(-2;0)','C(2;6)'] ] df = pd.DataFrame(table, index=['x','y','Точка'], columns=['A','B','C']) X = [x for x in df.loc['x']] Y = [y for y in df.loc['y']] plt.plot(X, Y, marker='o'); plt.annotate('A(0;3)', xy=(df['A']['x'] + 0.2,df['A']['y'])) plt.annotate('B(-2;0)', xy=(df['B']['x'] + 0.2,df['B']['y'])) plt.annotate('C(2;6)', xy=(df['C']['x'] + 0.2,df['C']['y'])); How to sign the points on the chart, that is, near each point put A (0; 3), B (-2; 0), C (2; 6) 'corresponding signature? I did it in a curve through the annotation, I'm sure you don’t have to do it, how to sign the points correctly?
