CIL
CIL copied to clipboard
Stretching of axis on show2D
Say I want to read a subset of a dataset to zoom in on an area of a sinogram:
grey_data = NikonDataReader(file_name = GREY_DATA_NIKON_FILE, roi={'angle': (930, 980)}).read()
show2D(grey_data)
displays:
Whereas if I get a slice it is scaled differently (for me this is what I wanted):
grey_data_2 = grey_data.get_slice(vertical='centre')
show2D(grey_data_2)
I am not sure why the display differs because surely under the hood show2D is calling .get_slice(vertical='centre')? https://github.com/TomographicImaging/CIL/blob/dcb84a3c9de51b9e2877b3022da42069a269ec65/Wrappers/Python/cil/utilities/display.py#L538
I think show2D should display the same in these two scenarios to be consistent, and should allow some way to scale the axis so you either show it as a subset of the total angles (picture 1), or stretched to fill the available space (picture 2)