Color bar with discrete colors

This is how I modified poormans_contour.py:

It's a bug; in the matplotlib/pylab.py function "colorbar", replace
the line that reads

    N = 200

with

    N = cmap.N

No need to tweak the clim....

Should cure what ails ya,
JDH