English

Name the function which is used to save the plot.

Advertisements
Advertisements

Question

Name the function which is used to save the plot.

Very Short Answer
Advertisements

Solution

plt.savefig()

The savefig() function of the Matplotlib library is used to save a plot or graph as an image file. It can save the plot in formats like PNG, JPG, PDF, etc.

shaalaa.com
  Is there an error in this question or solution?
Chapter 4: Plotting Data using Matplotlib - Exercise [Page 134]

APPEARS IN

NCERT Informatics Practices [English] Class 12
Chapter 4 Plotting Data using Matplotlib
Exercise | Q 3. | Page 134
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×