import gdsfactory as gf

gf.gpdk.PDK.activate()

c = gf.components.triangle(x=10, xtop=0, y=20, ybot=0, layer='WG').copy()
c.draw_ports()
c.plot()