While lines represent smooth trends, markers pinpoint the exact locations where discrete data observations were collected.
Push-pins stuck into specific coordinate coordinates on a corkboard chart.
'o' (circle), 's' (square), '^' (triangle up), 'v' (triangle down), 'D' (diamond), '*' (star), 'x' (cross), '.' (small point).
plt.plot(x, y, marker='^', markersize=10)`markerfacecolor` (or `mfc`) and `markeredgecolor` (or `mec`) customize interior and border colors.
plt.plot(x, y, marker='o', mfc='white', mec='#6366F1', ms=8)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]` and `y=[4, 7, 3]` using star marker `marker='*'` with `markersize=12` and `color='#FF5C7A'`.
✓ marker✓ markersizeTest your understanding to unlock the lesson completion badge