I am struggling to find the right way to specify the save path (or repository) when calling the savefig function in matplotlib or pylab.
I tried several syntaxes, but each time the python console returns:
FileNotFoundError: [Errno 2] There is no such file or directory: '../MyDocs/resource/frames/MyImage.png'
Currently, I have written the following:
pylab.savefig('../MyDocs/resource/frames/MyImage.png')
Does anyone know how to do this?
Thanks in advance!
source share