I am working on Jupyter Lab and trying to save the figure. Function savefig() is called exactly before show() and the figure is well shown in notebook, however, the saved pd