def _set_cmap(self): import matplotlib.cm as cm if hasattr(cm, "viridis"): return "viridis" else: return "jet"