old_contents: # -*- coding: utf-8 -*-
  # Copyright (c) 2015, Vispy Development Team.
  # Distributed under the (new) BSD License. See LICENSE.txt for more info.
  # vispy: gallery 1
  """
  Plot different styles of ColorBar using vispy.plot
  """
  
  from vispy import plot as vp
  
  fig = vp.Fig(size=(800, 400), show=False)
  plot = fig[0, 0]
  
  # note: "bottom" could also be used, but this would
  # conflict with top.
  orientations = ["top", "left", "right"]
  
  
  for orientation in orientations:
      cbar = plot.colorbar(orientation=orientation,
                           label=orientation,
                           clim=(0, 100),
                           cmap="winter",
                           border_width=1,
                           border_color="#212121")
  
  if __name__ == '__main__':
      fig.show(run=True)
  
new_contents: # -*- coding: utf-8 -*-
  # Copyright (c) 2015, Vispy Development Team.
  # Distributed under the (new) BSD License. See LICENSE.txt for more info.
  # vispy: gallery 1
  """
  Plot different styles of ColorBar using vispy.plot
  """
  
  from vispy import plot as vp
  
  fig = vp.Fig(size=(800, 400), show=False)
  plot = fig[0, 0]
  
  # note: "bottom" could also be used, but this would
  # conflict with top.
  positions = ["top", "bottom", "left", "right"]
  
  
  for position in positions:
      plot.colorbar(position=position,
                    label=position,
                    clim=(0, 100),
                    cmap="winter",
                    border_width=1,
                    border_color="#212121")
  
  if __name__ == '__main__':
      fig.show(run=True)
  
subject: update plotting example for new colorbar API