Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Data Science Basics Charts and Tables Charts and Tables

This question does not make any sense. I have rewatched the last 3 videos too.

Please reword the question I guess...

1 Answer

Mustafa Başaran
Mustafa Başaran
28,046 Points

Hi Daniel,

The first step of the challenge is to make use of the predefined styles available in the matplotlib library. ggplot is a pythonic approximation to the popular ggplot2 package in R.

plt.style.use('ggplot')

The second and last part of the challenge is to define a figure, fig. Usually, the figure is populated with a graph or neighboring graphs in the following lines.

fig = plt.figure()

For a good overview of the matplotlib library and predefined style statements such as plt.style and plt.figure, please refer to https://matplotlib.org/users/style_sheets.html , https://matplotlib.org/examples/pyplots/pyplot_two_subplots.html