Use p.set_clim([5, 50]) to set minima and maxima for color scaling for your example. Everything that matplotlib has, which has a color palette, has get_clim and set_clim .
As a complete example:
import matplotlib import matplotlib.pyplot as plt from matplotlib.collections import PatchCollection from matplotlib.patches import Circle import numpy as np

Now, if we just add p.set_clim([5, 50]) (where p is the collection of patches) somewhere before we call plt.show(...) , we get the following: 
Joe kington
source share