I need help with a python code. I am able to add an inset in my plot Plot with inset . But unable to give axis coordinates in the inset. I get the following error, TypeError