How to display objects in different random colors on a white background in matplotlib python?
===

I have an image where i have objects labeled with numbers e.g all the pixels belong to object 1 has the value 1 and so on. Rest of the image is zero.

I want to see every object in different random colors with white background.

I have tried several color maps like gray,jet etc but none of them meet the requirement because they sequentially color the objects from dark to light.

Thanks a lot.