Error while saving the plot using savefig() command
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.

savefig("C:\\\\Users\\\\username\\\\Desktop\\\\plot.png")
22-06-19, 2:37 p.m. iakashchavan


Click here to reply/comment online