code: def get_mpl_colormap(self, **kwargs):
          
          if not HAVE_MPL:    # pragma: no cover
              raise RuntimeError('matplotlib not available.')
  
          cmap = LinearSegmentedColormap.from_list(self.name,
                                                   self.mpl_colors, **kwargs)
  
          return cmap
docs: A color map that can be used in matplotlib plots. Requires matplotlib
          to be importable. Keyword arguments are passed to
          `matplotlib.colors.LinearSegmentedColormap.from_list`.