pylab plot using class