Figure size and DPI
📖 Scenario: You are preparing a simple plot to show sales data for a small shop. You want to control how big the plot looks and how clear it is by setting the figure size and DPI (dots per inch).
🎯 Goal: Create a matplotlib plot with a specific figure size and DPI, then display it.
📋 What You'll Learn
Create a figure with size 6 inches wide and 4 inches tall
Set the DPI of the figure to 100
Plot a simple line graph of sales data
Display the plot
💡 Why This Matters
🌍 Real World
Setting figure size and DPI helps make charts clear and well-sized for reports, presentations, or websites.
💼 Career
Data scientists and analysts often adjust figure size and DPI to create professional and readable visualizations.
Progress0 / 4 steps