how long do you have to wait to get on a plane after scuba diving?
It recommends at least a 12 to 24-hour wait after pretty much any kind of diving before getting on a plane. The Divers Alert Network has a very readable (although quite dated) article you might want to look at as well: Flying After Diving -- Cracking the DCS Code.