Hi,
wih “+” you compile your macro. It looks like you ran into a problem with Cint’s optimization & scoping algorithms. So compiling your macro would indeed be the workaround, until the new Cint version is in place that’s supposed to fix these issues.
Note, though, that you don’t need your vector x nor y - you can set the bin content in the loop in which you read your file.
Cheers, Axel.