New and having a code problem

Having a problem with this code. Anyone can see the problem?

The plot window on the bottom right is too small, give it more of the screenspace