Added a function to display a colormap.

New function to display colormaps is added. This new functionality is also used to simplify the gallery in the documentation.