Overview - Figure size and DPI
What is it?
Figure size and DPI control how big and clear a plot looks in matplotlib. Figure size sets the width and height of the plot in inches. DPI, or dots per inch, controls how many pixels fit into each inch, affecting the sharpness. Together, they decide the final image size and quality you see or save.
Why it matters
Without understanding figure size and DPI, your plots might look blurry, too small, or too large when shown or saved. This can make data hard to read or look unprofessional. Knowing these lets you create clear visuals that fit perfectly in reports, presentations, or websites.
Where it fits
Before this, you should know basic matplotlib plotting commands. After this, you can learn about customizing plot styles, saving figures in different formats, and optimizing visuals for different devices or print.