✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python
🤑 Join the Treehouse affiliate program and earn 25% recurring commission!
New No-Code Track! 🚀start learning today!
🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀
Please fill in the correct answer in each blank provided below.
Fill in the blank(s) below:
I need some help with this scatter plot. Will you please fill in the necessary values to produce a plot which uses the `color` values for the marker color, and the `group` values in the legend?
import matplotlib.pyplot as plt python = ([20, 22, 24, 20, 21], [14, 8, 16, 9, 15]) java = ([10, 11, 12, 10, 11], [12, 4, 5, 8, 10]) swift = ([5, 6, 5, 6, 3], [8, 7, 6, 4, 8]) data = (python, java, swift) colors = ("blue", "red", "green") groups = ("Python", "Java", "Swift") for data, color, group in zip(data, colors, groups): x, y = data plt.scatter(x, y, alpha=0.75, s=25, =color, =group) plt.title("Breakthrough on Python") plt.show()
There was an error while reporting the question. Please try again, or contact support directly.
Describe the issue (optional) (required)
Your feedback has been submitted. Thank you!
If you continue experiencing problems, please contact support at help@teamtreehouse.com.
Quizzes are the best way to test your knowlege. Sign up for Treehouse today and prove yourself. We guarantee 100% satisfaction.