TomographicImaging / CIL

A versatile python framework for tomographic imaging
https://tomographicimaging.github.io/CIL/
Apache License 2.0
97 stars 45 forks source link

view_distance parameter in show_geometry has no effect #1954

Open lauramurgatroyd opened 1 month ago

lauramurgatroyd commented 1 month ago

Description

I would expect this to change how zoomed in the geometry appears but it has no impact

Environment

import cil, sys
print(cil.version.version, cil.version.commit_hash, sys.version, sys.platform)

24.1.0 -1 3.12.5 | packaged by conda-forge | (main, Aug 8 2024, 18:36:51) [GCC 12.4.0] linux

lauramurgatroyd commented 1 month ago

This is relevant for the hyperspectral CIL-Demos: we want to make this more zoomed in

https://github.com/TomographicImaging/CIL-Demos/pull/160#issuecomment-2306964366

gfardell commented 1 month ago

The matplotlib 3D axis distance was deprecated in matplotlib 3.6, they recommend using zoom now.

https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.6.0.html#axes3d-dist

https://github.com/TomographicImaging/CIL/blob/64852595629d433886bd6a2d80fddf3a055a4efc/Wrappers/Python/cil/utilities/display.py#L764