Home > Software engineering >  Is there a way to add custom colors to the matplotlib cnames dictionary?
Is there a way to add custom colors to the matplotlib cnames dictionary?

Time:08-24

Matplotlib provides a large number of named colors that are identified in a dictionary called cnames.

I'd like to define an additional number of named colors that are part of our corporate palette.

Is there a way to add to the cnames dictionary without editing that file?

CodePudding user response:

You should definetely take a look at enter image description here

You may also consider putting you corporate pallette in the axes.prop_cycle property in the matplotlibrc file.

  • Related