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
Answers:
change your directory to Desktop and try running savefig cmd again.
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
In linux it works(as you've seen in spoken-tutorial) in windows you might have to specify the complete path.
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/sine.ps')
In [18]: savefig('C:/Users/administrator/Desktop/sine.svg')