
import matplotlib.pyplot as plt
# Координаты точек
points = [
(-4, -2),
(-5, -2),
(-6, -3),
(-6, -5),
(-5, -6),
(-3, -6),
(-2, -5),
(-2, -3),
(-3, -2),
(-4, -2),
(-4, -1),
(1, 4),
(-1, 4),
(-3, 6),
(-1, 6),
(3, 2),
(5, 2),
(3, 4),
(1, 4),
(1, -2),
(0, -2),
(-1, -3),
(-1, -5),
(0, -6),
(2, -6),
(3, -5),
(3, -3),
(2, -2),
(1, -2)
]
# Разделяем координаты на x и y
x_coords = [p[0] for p in points]
y_coords = [p[1] for p in points]
# Строим график
plt.figure(figsize=(8, 8)) # Adjust figure size as needed
plt.plot(x_coords, y_coords, 'b-', marker='o') # 'b-' creates a blue line, 'o' adds markers
# Настраиваем оси
plt.xlabel("X Axis")
plt.ylabel("Y Axis")
plt.title("Plot of Coordinates")
plt.grid(True)
# Делаем оси равными, чтобы рисунок не искажался
plt.axis('equal')
# Отображаем график
plt.show()
составил с помощь программы написанной GPT
(-5, -2)
(-6, -3)
(-6, -5)
(-5, -6)
(-3, -6)
(-2, -5)
(-2, -3)
(-3, -2)
(-4, -2)
(-4, -1)
(1, 4)
(-1, 4)
(-3, 6)
(-1, 6)
(3, 2)
(5, 2)
(3, 4)
(1, 4)
(1, -2)
(0, -2)
(-1, -3)
(-1, -5)
(0, -6)
(2, -6)
(3, -5)
(3, -3)
(2, -2)
(1, -2)