Excellent!
I adapted the code as follows:
- create a separate class with all GUI parameters (like cols, rows, aspect ratio, padding, margins, etc);
- change Units from 'normalized' to 'pixels';
- adapt axes position not to the screen resolution & figure dimension, but to the panel dimension, so you can put more information (like control buttons) where you want in the same figure;
Comment only