Also, my method for doing this was pretty clunky. I saved a list of RGB values from a colorbrewer site, and plugged them in to the colormap line by line. If there is a preferred way to do it that gets around the above issue, please let me know!
Code: Select all
greenlist = [[247,252,245], [229,245,224], [199,233,192], [161,217,155], [116,196,118], [65,171,93], [35,139,69], [0,109,44], [0,68,27]] for i in range(len(greenlist)): l = [i]+greenlist[i] sw4.colormap(*l)