Calculate window resizing based on gheight (plot only) rather than height (full window)