class_docstr: Interaction tab for slice visualization.
  
  Attributes
  ----------
  name : str
      Name of the tab.
class_docstr_tok: ["Interaction","tab","for","slice","visualization",".","Attributes","--","--","--","--","--","name",":","str","Name","of","the","tab","."]
code: def _update_colormap(self):
      if self._colormap_switcher.selected_value[1] == "dist":
          rgb = colormap.distinguishable_colormap(nb_colors=256)
          rgb = np.asarray(rgb)
      else:
          rgb = colormap.create_colormap(
              np.linspace(
                  self._intensities.selected_value[0],
                  self._intensities.selected_value[1],
                  256,
              ),
              name=self._colormap_switcher.selected_value[1],
              auto=True,
          )
      num_lut = rgb.shape[0]
  
      lut = colormap.LookupTable()
      lut.SetNumberOfTableValues(num_lut)
      lut.SetRange(
          self._intensities.selected_value[0],
          self._intensities.selected_value[1],
      )
      for i in range(num_lut):
          r, g, b = rgb[i]
          lut.SetTableValue(i, r, g, b)
      lut.SetRampToLinear()
      lut.Build()
  
      for slice_actor in self._visualizer.slice_actors:
          slice_actor.output.SetLookupTable(lut)
          slice_actor.output.Update()
  
imports: import warnings
  from functools import partial
  import numpy
  from dipy.utils.optpkg import optional_package
  from dipy.viz.horizon.tab import HorizonTab, build_label, build_slider, build_switcher, build_checkbox
label_desc: Use image node_id 10 for calling the SlicesTab obj's underlying member method code with example usage: obj._update_colormap() without return types