Scatter plots
📖 Scenario: You are a data analyst working with a small dataset of students' study hours and their exam scores. You want to visualize the relationship between how much they studied and how well they scored.
🎯 Goal: Create a scatter plot to show the relationship between study_hours and exam_scores.
📋 What You'll Learn
Create two lists called
study_hours and exam_scores with exact valuesCreate a variable called
point_color to set the color of the scatter pointsUse
matplotlib.pyplot.scatter() to create the scatter plot with the given data and colorUse
plt.xlabel() and plt.ylabel() to label the axesUse
plt.title() to add a title to the plotUse
plt.show() to display the plot💡 Why This Matters
🌍 Real World
Scatter plots are used in many fields like education, business, and science to see how two things relate to each other visually.
💼 Career
Data analysts and scientists use scatter plots to quickly understand patterns and relationships in data, which helps in making decisions.
Progress0 / 4 steps