While running a macro for overalying plots, I am facing quite a lot of errors !
Though IPlease note that I am not facing these errors while doing the same thing on lxplus and getting a nice plot.
We do not have your data files. Therefore it is not possible to run your macro. Can you provide them of make a macro showing the errors without the need for additional files ?
as per the error message, some calculations in your code lead to an Inf or NaN (typically the result of a division by zero, the square root of a negative number or similar). The only way to find out is for you to debug your code, using a debugger or inserting print-outs to check what’s going on.