docs: def color_as_heatmap(self, weights, max_weight=1.0, color=DEFAULT_COLORMAP):
          '''
          Truncate weights to the range [0, max_weight] and rescale, as you would
          want for a heatmap with known scale.
          '''
          import numpy as np
          adjusted_weights = np.clip(weights, 0., max_weight) / max_weight
          self.vc = colors_like(adjusted_weights, self.v, colormap=color)