Changes to make graph fit with correct resolution