added: changed examples to use te.plotWithLegend()