added ellipse plotting function