Bug fix on y-axis (not accounting for padding properly so positioning of line incorrect)