saving . . . saved Error umber 13 has been deleted. Error umber 13 has been hidden .
Error umber 13
error 13, permission denied, 
when run the command savefig('sine.png')

Python-3.4.3 Saving-plots 04-05 min 10-20 sec 25-05-19, 3:19 p.m. geetachhikara


change your directory to Desktop and try running savefig cmd again. 
25-05-19, 3:25 p.m.
yes, I m able to save the figure in the desired directory by giving complete path. But it did not work for current directory(without giving path), as discussed in spoken tutorial.
25-05-19, 3:44 p.m. geetachhikara
This is because you do not have the permission to write in your current directory.
25-05-19, 3:52 p.m. pratham920
How I can change permissions for the current directory?
26-05-19, 8:52 a.m. geetachhikara

Login to add comment

In linux it works(as you've seen in spoken-tutorial) in windows you might have to specify the complete path.
25-05-19, 3:48 p.m.

In [14]: savefig('C:/Users/administrator/Desktop/sine.png')

In [15]: savefig('C:/Users/administrator/Desktop/sine.eps')

In [16]: savefig('C:/Users/administrator/Desktop/sine.pdf')

In [17]: savefig('C:/Users/administrator/Desktop/')

In [18]: savefig('C:/Users/administrator/Desktop/sine.svg')
01-05-20, 4:32 p.m. DNG

Log-in to answer to this question.