Glyphs examplesΒΆ

Apart from volume rendering, ipyvolume can render glyphs in the same volume. Below are some examples.

In [1]:
import ipyvolume
import ipyvolume.pylab as p3
import numpy as np

Fetch a dataset containing a Zeldovich approximation of large scale structure growth in the universe (generated with vaex)

In [2]:
dsz = ipyvolume.datasets.zeldovich.fetch()
In [3]:
p3.figure()
s = p3.scatter(dsz.x, dsz.y, dsz.z, s=0.005)
p3.show()
In [4]:
p3.figure()
q = p3.quiver(dsz.x, dsz.y, dsz.z, dsz.vx, dsz.vy, dsz.vz, s=0.05, ss=0.05*1.5)
p3.show()
In [5]:
q.selected = np.random.randint(0, len(dsz.x), 2000) # randomly select points