How to create colour gradient in Python?
问题 I want to create a new colormap which interpolates between green and blue (or any other two colours for that matter). My goal is to get something like: First of all I am really not sure if this can be done using linear interpolation of blue and green. If it can, I'm not sure how to do so, I found some documentation on using a matplotlib method that interpolates specified RGB values here The real trouble is understanding how "cdict2" works below. For the example the documentation says: