from sectionproperties.pre.library import triangular_section

triangular_section(b=10, h=10).plot_geometry()