colorbar

Adds a colorbar for the color mapping of the given object.

If the object has scalar data, the scalar color mapping is represented. Elsewhere the vector color mapping is represented, if available. If no object is specified, the first object with a color map in the scene is used.

Keyword arguments:

object:Optional object to get the color map from
title:The title string
orientation:Can be 'horizontal' or 'vertical'