Код: Выделить всё
coors=np.array([[0,0],[1,1],[2,2]])
heat_values=[3,2,1]
Код: Выделить всё
mtx=[[3,0,0],
[0,2,0],
[0,0,1]]
Подробнее здесь: https://stackoverflow.com/questions/788 ... -in-python
Код: Выделить всё
coors=np.array([[0,0],[1,1],[2,2]])
heat_values=[3,2,1]
Код: Выделить всё
mtx=[[3,0,0],
[0,2,0],
[0,0,1]]