ipyvolume
ipyvolume copied to clipboard
incorrect view
I cannot set the view of a scatter plot directly. Have to run again in a separate cell in jupyter to get the correct view.
import ipyvolume as ipv
import numpy as np
a = np.random.rand(10, 3)
fig = ipv.figure()
ipv.scatter(*a.T)
ipv.view(0, -90, 2)
ipv.show()

The view changes to the correct value, if I run again in a different cell.
ipv.view(0, -90, 2)

Hi,
I also have issues with the view command, version 0.6.0.a4.
The view function sets the f.camera.position correctly, but f.camera.matrix and f.camera.matrixWorld differ after twice calling view() with a manual rotation in the figure in between.
f.camera is a pythreejs instance. So there might be an issue on the pythreejs side?