The problem in example_1.py was that the chosen width for the plot was too big. I divided it by ten to change the plot to the requested shape.