CBSE Class 12 Informatics Practices
Question 32 of 73
Data Visualization using Matplotlib — Question 9
Back to all questionsplt.savefig("bar1.ppt")
Reason — The savefig() function in matplotlib is used to save a figure to a file. It supports various file formats such as PDF, PNG, EPS, SVG, etc. However, PPT (PowerPoint) is not a supported file format for saving figures in matplotlib.