fixed orbits.py to plot period ratios of N planets