Skip to content

[BUG] Rotating not working #9

@rabernat

Description

@rabernat

Thanks so much for this amazing package! I just tried it out with some Icechunk data and it worked great right out of the box!

However, I am having one issue that I don't know how to solve.

Describe the bug

I can't figure out how to rotate the cube. I assumed I could just drag it around, like in the screenshots, but that doesn't work.

To Reproduce
I just ran this example code in a jupyter notebook

import xarray as xr
import lexcube 
ds = xr.open_dataset("https://data.rsc4earth.de/download/EarthSystemDataCube/v3.0.2/esdc-8d-0.25deg-256x128x128-3.0.2.zarr/", chunks={}, engine="zarr")
da = ds["air_temperature_2m"][256:512,256:512,256:512]
w = lexcube.Cube3DWidget(da, cmap="thermal_r", vmin=-20, vmax=30)
w

Zooming works fine. But I can't rotate the cube at all.

Expected behavior

I expected that I would be able to drag the cube around to rotate it.

Desktop (please complete the following information):

  • OS: Mac OS 14.4.1
  • Browser: Chrome 133.0.6943.99
  • Version: Lexcube 0.4.23

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions