import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np

# Задаем координаты точек
x = [1, 2, 3, 4, 5]
y = [2, 3, 4, 5, 6]
z = [3, 4, 5, 6, 7]

# Создаем трехмерный график
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')

# Строим точки
ax.scatter(x, y, z, c='r', marker='o')

# Задаем названия осей
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('Z')

# Показываем график
plt.show()
