in matplotlib(specifically matplotlib.cm), you can call a colour from a colormap, like so
import matplotlib.cm as cm
cm.viridis(0.5) #viridis is the name of a colormap
and it takes the colour from the centre of the colormap(which is (0.127568, 0.566949, 0.550556, 1.0)
)
basically I want to be able to call a colormap that is taken from the library palletable. and you can import a specific palette like so:
from palettable.colorbrewer.qualitative import Dark2_7
This imports the colormap "Dark2_7" but I don't have any idea how to "call" it as I did with viridis, I'm just starting out and I am literally clueless, thank you, sorry if the wording is weird, ask if you need more details or if this isn't clear enough.