Set Figure colors

A solution to the exercise from the last section

Here's how I went about it.

I mentioned the linter (code syntax checker) flake8 in the solution video. I've found it to be super helpful and recommend you try it out if you haven't already found a linter you like.

Exercise 7: Set the Figure background colors

  • Choose a set of three colors to build the figure with
  • Initialize the figure to have a light border and a not-too-dark background
  • Verify that the saved figure has the colored background you created

There's a relevant bit of tutorial on how to do this here.

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

Ready? Go for it.

Discussion

0 comments