Make the graph fit the screen in landscape or portrait