saving . . . saved Error while saving the plot using savefig() command has been deleted. Error while saving the plot using savefig() command has been hidden .
Error while saving the plot using savefig() command
Title
Question
After executing the savefig('sine.png') command, it is showing some error instead of saving in current directory and after specifying the saving location  as instructed later in this video their is an error.

Python-3.4.3 Saving-plots 02-03 min 10-20 sec 22-06-19, 2:27 p.m. Meeraj

Answers:

The directory in which you are saving the figure must exist, or else it will throw you an error.

<span style="background-color: rgb(255, 255, 255); color: rgb(38, 50, 56); font-family: Roboto, sans-serif; font-size: 13px;">savefig("C:\\\\Users\\\\username\\\\Desktop\\\\plot.png")</span>
22-06-19, 2:37 p.m. iakashchavan


Log-in to answer to this question.