A 5-inch separation should suffice. There is no code on running cable beside the power, HOWEVER if voltage gets onto the cable it can cause a HUM bar in your picture so it is always good practice to separate power and cable.
I have installed Sat and Cable TV for 10 years and my best advise it to keep your coax as far away from electical as you can. You have no idea how many wall fishes I have had to do to get rg-6 away from electical lines. Huge pain in the you know where.