Savefig takes forever

320 views Asked by At

I wanted to use savefig command of matplotlib. While creating the image takes 2.578 seconds only, when the g.show() is replaced with g.savefig("path\\"+"fig.pdf"), the time it takes increases to 391.946 seconds.

The same time delay occurs when I use g.show() and then try to save it from the shown image file.

I am using python for several years now and it was never this slow. What can be the reason for this issue?

I am using Enthought Canopy with Python 2.7 on a Windows 10 computer, if this is important.

Thanks

0

There are 0 answers