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
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>
Login to add comment