Sets the widget's colormap to colormap. The widget must not have been realized or shown before calling set_colormap() .