import matplotlib.pyplot as plt

def draw_plot(points):
    fig, ax = plt.subplots(figsize=(7, 7))
    limit = 0.8
    ax.set_xlim(-limit, limit)
    ax.set_ylim(-limit, limit)
    ax.axhline(0, color='black', linewidth=1)
    ax.axvline(0, color='black', linewidth=1)
    ax.set_xlabel('U', loc='right', fontsize=12, fontweight='bold')
    ax.set_ylabel('V', loc='top', rotation=0, fontsize=12, fontweight='bold')
    ax.grid(True, linestyle='--', alpha=0.5)

    for x, y, label in points:
        ax.scatter(x, y, color='red', s=40)  # точка
        ax.text(x + 0.02, y + 0.02, label, fontsize=10)  # подпись с небольшим смещением

    ax.set_title("«Вектороскоп» в координатах (U,V)")
    plt.show()

# Сюда закидывай свои точки: (x, y, "подпись")
my_points = [
    (0, 0, "Черный"),
    (0.438, -0.096, "Синий"),
    (-0.147, 0.614, "Красный"),
    (0.202, 0.517, "Фиолетовый"),
    (-0.291, -0.517, "Зелёный"),
    (0.147, -0.614, "Голубой"),
    (-0.252, 0.096, "Жёлтый"),
    (0, 0, "Белый"),
    (-0.279, 0.381, "1"),
    (-0.211, 0.331, "2"),
    (-0.138, 0.202, "3"),
    (-0.052, 0.114, "4"),
    (0, 0, "5")
]

draw_plot(my_points)
