Updating matrices subplots in for loop not working