The formation and behaviour of gas bubbles in a non-uniform temperature environment