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 Introduction to Data Visualization with Matplotlib Chart Toppers Matplotlib Syntax

Pranshu Mittal
Pranshu Mittal
4,276 Points

answer correct but showing incorrect

the color argument is rendered wrong by the compiler even though it is correct. Could anyone help what is the issue here

1 Answer

Are you talking about this question?

Will you please fill out the matplotlib method for generating a histogram chart with six bins and green coloring? I appreciate it.

import matplotlib.pyplot as plt
some_numbers = [1, 2, 4, 4, 4, 1, 1, 2, 4, 3, 5, 5, 6, 5, 5, 6]
plt.___(some_numbers, 6, ___='green')
plt.show()

If so the second blank is not color. See this video @ 2:47.