# Untitled

unknown
plain_text
a month ago
1.9 kB
0
Indexable
Never
```import matplotlib.pyplot as plt

# Создаем фигуру и оси
fig, ax = plt.subplots()

# Нарисуем голову кота
head = plt.Circle((0.5, 0.5), 0.25, color='gray')

# Нарисуем уши
left_ear = plt.Polygon([[0.3, 0.65], [0.35, 0.7], [0.4, 0.65]], color='gray')
right_ear = plt.Polygon([[0.6, 0.65], [0.65, 0.7], [0.7, 0.65]], color='gray')

# Нарисуем глаза
left_eye = plt.Circle((0.42, 0.5), 0.04, color='white')
right_eye = plt.Circle((0.58, 0.5), 0.04, color='white')
left_pupil = plt.Circle((0.42, 0.5), 0.015, color='black')
right_pupil = plt.Circle((0.58, 0.5), 0.015, color='black')

# Нарисуем нос и рот
nose = plt.Polygon([[0.5, 0.48], [0.47, 0.45], [0.53, 0.45]], color='black')
mouth = plt.Polygon([[0.47, 0.43], [0.53, 0.43], [0.5, 0.4]], color='black')

# Нарисуем усы
left_whiskers = plt.Polygon([[0.45, 0.48], [0.42, 0.46], [0.42, 0.5]], color='black')
right_whiskers = plt.Polygon([[0.55, 0.48], [0.58, 0.46], [0.58, 0.5]], color='black')

# Нарисуем тело
body = plt.Rectangle((0.25, 0.3), 0.5, 0.3, color='gray')

# Нарисуем ноги
left_leg = plt.Rectangle((0.3, 0), 0.1, 0.3, color='gray')
right_leg = plt.Rectangle((0.6, 0), 0.1, 0.3, color='gray')

# Нарисуем хвост
tail = plt.Polygon([[0.25, 0.2], [0.2, 0.25], [0.2, 0.1]], color='gray')