title: How to create custom color names in matplotlib using hex values?
body: <p>So I have been trying to create a consistent colormap or color codes using hex values.
  So let's say that I have a below data frame:</p>
  
  <p><img src="https://i.stack.imgur.com/Xdasa.png" alt="DataFrame"></p>
  
  <p>I would like to use the position from DEPT_NAME column as a color code, just like you can use 'k', 'blue', 'red', etc.</p>
  
  <p>I was thinking about creating a pickle dictionary with positions and hex values, but I couldn't find any information in matplotlib documentation on how can I create a colormap for this specific situation.</p>
  
  <p>It would be very helpful to use it when plotting other graphs that also take DEPT_NAME values as the color codes would be consistent across all the graphs.</p>
  
  <p>Thanks for your help!</p>