It looks to me like sometimes it's doing getPixelForTick and sometimes it's doing something more akin to getPixelForIndex. This gets especially confusing in certain cases like when autoSkip is enabled or you have auto tick generation on the time scale where ticks and indexes don't map 1:1.