triad construction and plotting