def _createFigure(self): fig, ax = self._plotter.subplots() pObj = PatchCollection(self._patches, cmap=matplotlib.cm.jet, alpha=0.4) pObj.set_array(np.array(self._colors)) ax.add_collection(pObj)