Код: Выделить всё
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
x = np.random.rand(100)
y = np.random.rand(100)
z = np.random.rand(100)
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
scatter = ax.scatter(x, y, z, c='r', marker='o')
plt.show()
Код: Выделить всё
A = np.column_stack((x, y, z)).
Код: Выделить всё
B = A x rot(X) + shift(Y) + Noise
Подробнее здесь: https://stackoverflow.com/questions/786 ... he-inverse