Plot top losses problem?

Hi! I’ve tried this same as @henry but it didn’t work. Would like to know how to implement this!