title: Contrasting color palette in python
body: <p>Can someone tell me how I can generate a contrasting color palette in python. I need a set of colors that give a good contrast (distinguished easily) on a plot in color and B/W. It is important to have contrast in B/W if not completely in color. </p>
  
  <p>Thanks</p>
  
  <p>edit: I am currently using matplotlib, python 2.7. I use the default pyplot which generates colors which can sometimes be very close specially when converted to B/W. I would like to generate colors that can be distinguished easily even in shades of grey. I am not using any additional libraries. </p>