Updated examples to use pyplot for plotting instead of pylab

Some examples not updated because scripts throw error (probably not
because of the change)