Rev. | 6540e33d2287c886a8aa10e6e756ff61434e70a0 |
---|---|
Tamanho | 258 bytes |
Hora | 2021-09-17 21:39:46 |
Autor | Lorenzo Isella |
Mensagem de Log | I updated the code to make it work with Python 3. |
#! /usr/bin/env python3
import numpy as np
from mayavi import mlab
x = np.arange(10)
y = np.ones_like(x)
z = np.ones_like(x)
s = x
mlab.clf()
pts = mlab.points3d(x, y, z, s, colormap='jet', scale_mode='none', resolution=20)
mlab.axes(pts)
mlab.show()