My two cents - A bath after yoga can be optional depending on your sweat level, but I definitely felt the benefits of taking bath before morning yoga classes as Patanjali once suggested for multiple reasons.
I felt more energized to dedicate myself for the practice, much easier to stretch and focus. Now I prefer taking baths before even if that makes me 4-5 minutes late to the class.