Added a function to easily plot a gradient legend