ADVERTISEMENT
Google AdSense Slot (headerLeaderboard)
Set your Publisher ID in src/config/ads.ts to display live ads.
Matplotlib Data Visualization Tutorial• 6 min read
Scatter Plots, Bubble Charts & Colormaps
Explore correlations, create 3-variable bubble charts with variable point sizing, and map continuous data to colormaps.
Multi-Variable Scatter Plots
plt.scatter(x, y, s=sizes, c=colors, cmap="viridis") encodes four distinct data dimensions simultaneously: X coordinate, Y coordinate, circle radius (size), and color intensity.
ADVERTISEMENT
Google AdSense Slot (inContentBanner)
Set your Publisher ID in src/config/ads.ts to display live ads.
Test Yourself With Exercise
Which parameter in plt.scatter() controls the size (area in points^2) of each plotted marker?