• R/O
  • SSH

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

File Info

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.

Content

#! /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()