Problem 4: Build a 2x2 Dashboard of Four Charts
Easypython
Problem Description
Write a Python program that creates a 2x2 grid of subplots showing four different simple charts (e.g., line, bar, scatter, histogram), each with its own title, and uses tight_layout() to keep everything readable.
Input
Four small datasets, one for each chart type.
Output
A displayed 2x2 dashboard figure.
Constraints
- Use
plt.subplots(2, 2).
Example Input
text(Four small datasets suitable for line, bar, scatter, and histogram charts)
Example Output
text(A 2x2 grid figure showing all four chart types, cleanly laid out)
Concepts Covered
plt.subplots(2, 2), axes[row, col], tight_layout().