This example shows how to create a discrete or continous color legends.