PlotShape colormap
Posted: Tue Apr 07, 2020 11:27 am
Hi, is there are way to make PlotShapes have different colormaps? I changed the color scheme for one plotshape (for fluorescence - I want it to be a single hue) and it ended up changing the rest of them. Is there any way around this, or is colormap a global setting? Thanks!
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!
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)