Hello,
The data to be processed by the script I am writing is in the form of arrays, which are then shown as images. The array elements are all equal to zero except where there is information, and the information will be in a different spot every time. The arrays are quite large, and the elements with info don't take up much space at all, so at the moment when the figure is displayed, there is plenty of blank space.
So, I want the script to automatically zoom onto the information area (the non-zero part of the array), no matter where the information might be in the array.
(feel free to ask for context or more information)
Cheers all!