Scatter plots reveal relationships, correlations, clusters, and anomalies between two or more continuous variables without connecting them with lines.
Constellations of stars in the night sky where brightness represents brightness, position represents sky coordinates, and star size represents mass.
1. `x` (horizontal position), 2. `y` (vertical position), 3. `s` (marker area in points^2), 4. `c` (color array mapped via `cmap`).
plt.scatter(x, y, s=size_arr, c=color_arr, cmap='plasma')Avoid the top errors and bad plotting practices that trip up new Python developers
Switch from abstract numbers to relatable Cricket, Cinema & Business charts
Write Matplotlib code to solve the objective and see your live plot render
Plot `x=[1, 2, 3, 4, 5]` and `y=[2, 5, 8, 11, 14]` with `s=80` and `color='#00D9C0'`.
✓ plt.scatter✓ sTest your understanding to unlock the lesson completion badge