Fix 'endpoint' problem; avoid resampling the gridline positions.