Effect of gravity and its orientation on bubble departure