itom-project / itom

itom core repository
https://itom-project.github.io/
Other
13 stars 5 forks source link

Linecut in multidim dataObject #299

Open photoniker opened 2 weeks ago

photoniker commented 2 weeks ago

In a > 3dim dataObject the linecut in 2d plot do not show proper data for: stack = dataObject.rand([4, 10, 240, 240]) plot2(stack[:, 0, :,:])

image

It works using the squeeze method of dataObject: plot2(stack[:, 0, :, :].squeeze())

image

2d volume cut works:

image