1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Data Science in Python

Exercise

Playing with styles

Help Sergeant Laura try out a few different style options. Changing the plotting style is a fast way to change the entire look of your plot without having to update individual colors or line styles. Some popular styles include:

  • 'fivethirtyeight' - Based on the color scheme of the popular website
  • 'grayscale' - Great for when you don't have a color printer!
  • 'seaborn' - Based on another Python visualization library
  • 'classic' - The default color scheme for Matplotlib

Instructions 1/3

undefined XP
  • 1
    • Change the plotting style to "fivethirtyeight".
  • 2
    • Change the plotting style to "ggplot".
  • 3
    • View all styles by typing print(plt.style.available) in the console.
    • Pick one of those styles and see what it looks like.