Banana orbit has such shape due the vertical drift (caused by magnetic field) which is the sum of curvature drift and Grad B drift.
Summary of drifts:
• Summary of drifts
Python script for plotting the banana orbit:
https://github.com/maxcurie1996/Physi...