I have a custom color palette i created for my employer
pink = '#E5007E'
pink_80 = '#FFC7E6'
pink_60='#FF8FCC'
aqua='#00B4DF'
aqua_80='#C6F4FF'
pink_40='#FF56B3'
pink_d25='#AC005F'
aqua_60='#8CE9FF'
aqua_40='#53DEFF'
aqua_d25='#0087A7'
color_list = [pink, aqua,
aqua_80, pink_80,aqua_60, pink_60,aqua_40,pink_40,aqua_d25,pink_d25]
how do i make this the default color palette for all charts going forward? Is there such a way of saying "import color_list" and have matplotlib default to that list?
CodePudding user response:
You need to modify Matplotlib's configuration file, matplotlibrc
. This file is stored on various locations, depending on the level you wish to apply your edits (globally, vs single environment). You can find the locations at this
Now, the new color palette is going to be used everytime you load matplotlib.