Maintaining MATLAB figure dimensions June 10, 2015 To save a figure with specific dimensions, look at this page.
Converting matlab code to python November 25, 2013 Look at this SO question to convert matlab code into python/scipy/numpy: