Create the Figure

A solution to the exercise from the last section

Here's how I went about it.

Exercise 6: Create the Figure

Create a blank figure. Break the process out into two functions:

  • create_background(), to initialize the Figure with the correct height and width.
  • save_nn_viz(), to save the figure as a .png file.

Now that all the parameters defining the visualization are encoded (congratulations!) it's time to make the figure. We have to get some details right here, so we'll go slow. It will be worth your time to walk through the first two lessons of the Navigating Matplotlib course.

Feel free to use my solution to the last exercise as a starting point:

Ready? Go for it.