CBSE Class 12 Informatics Practices
Question 65 of 73
Data Visualization using Matplotlib — Question 3
Back to all questionsTrue
Reason — Matplotlib supports saving plots in various formats, including PDF. We can use the savefig() function and specify the file extension as .pdf to save the plot in PDF format. For example, to save the bar_plot as a PDF file, we use the following statement : plt.savefig("bar_plot.pdf").