Hydromagnetic stability of density stratified spiral and plane flows with and without temperature gradient