ipyvolume icon indicating copy to clipboard operation
ipyvolume copied to clipboard

incorrect view

Open niveshd opened this issue 5 years ago • 1 comments

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()

image

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

image

niveshd avatar Mar 07 '20 14:03 niveshd

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?

TimoFriedri avatar May 06 '20 13:05 TimoFriedri