earthplot and
earthplot2 are simple gnuplot
scripts to plot Earth-scale orbits; download them and make
them executable before using them in place of gpl)
Each of the above steps should require changes to only a
few lines of your program. However, by the end, you should be
ready to leave Earth behind and study real orbital mechanics!