Fix where y-axes location written

Affects windows only