Python Grid Column Width Function Matlab Example