CBSE Class 12 Informatics Practices Question 65 of 73

Data Visualization using Matplotlib — Question 3

Back to all questions
3
Question

Question 3

Plot can be saved in a pdf format.

Answer

True

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").