#!/usr/bin/env python # coding: utf-8 # In[ ]: from k3d import K3D import numpy points_number = 500 positions = 50 * numpy.random.random_sample((points_number,3)) - 25 colors = numpy.random.randint(0, 0xFFFFFF, points_number) plot = K3D() plot += K3D.points(positions, colors, point_size=3.0) plot.display()