code: def get_vertical_bar(pos, size):
      """
      Constructs the vertical bar that represents the
      color values for the Mandlebrot set
  
      Returns
      -------
      A vispy.visual.ColorBarVisual object that represents the
      data of the Mandlebrot set
      """
      vertical = ColorBarVisual(
          pos=pos,
          size=size,
          label="iterations to escape",
          cmap=colormap,
          orientation="left",
      )
  
      vertical.label.font_size = 15
      vertical.label.color = "white"
  
      vertical.clim = (0, MAX_ITERATIONS)
  
      vertical.ticks[0].font_size = 10
      vertical.ticks[1].font_size = 10
      vertical.ticks[0].color = "white"
      vertical.ticks[1].color = "white"
  
      vertical.border_width = 1
      vertical.border_color = Color("#ababab")
  
      return vertical
  
file_path: vispy/examples/basics/visuals/colorbar_visual.py
imports: from vispy import app
  from vispy import gloo
  from vispy.visuals.transforms import STTransform
  from vispy.visuals import ColorBarVisual, ImageVisual
  from vispy.color import Color, get_colormap
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: get_vertical_bar(pos, size) and returns: vertical