In [2]:
import numpy as np
import vaex as vx
import vaex.notebook
import scipy.ndimage
vaex.notebook.init()
In [3]:
ds = vx.example()
grid = ds.count(binby=["x", "y", "z"], limits=[-10,10])
In [4]:
# smooth a little bit
smooth = scipy.ndimage.gaussian_filter(grid, 1.5)
In [5]:
v = vx.notebook.volr(np.log10(smooth+10), volume_level=[0.3, 0.5, 0.8], opacity=[0.04, 0.04,0.1], brightness=2.5)
v