plotting examples using pyplot