from sectionproperties.pre.library import elliptical_section

elliptical_section(d_x=50, d_y=25, n=40).plot_geometry()