Matplotlib - Export and Publication Quality
You want to create a publication-ready plot with a width of 7 inches and height of 5 inches. You also want to save it as a PNG file with 300 dpi resolution. Which code snippet correctly sets the figure size and saves the plot?
