Code Monkey home page Code Monkey logo

Comments (4)

jack89roberts avatar jack89roberts commented on May 25, 2024

Hi @bhavaygg , thanks for your question. Could you help me understand what you mean exactly? Is what you want something more like one of the colormaps built-in to matplotlib? Or were you thinking of something like #2, i.e. a feature that decides where to assign colours based on the positions of the classes/labels on the page?

The colours returned by distinctipy are ordered so that each colour in the list is as different as possible to all the previous colours. So the order is not strictly random (the difference between neighbouring colours will be more than random).

from distinctipy.

bhavaygg avatar bhavaygg commented on May 25, 2024

Somewhat like the colormaps. I want to generate the N distinct colors but I don't mind if neighboring clusters are of similar colors, and the colors follow some sequence.

from distinctipy.

jack89roberts avatar jack89roberts commented on May 25, 2024

If you want a sequence of ordered colours you may be better off making a list of colours from a matplotlib colormap, e.g. using something like this: https://stackoverflow.com/a/25408562

But if this doesn't cover your usecase let me know.

from distinctipy.

bhavaygg avatar bhavaygg commented on May 25, 2024

Sorry, I understand this a bit better. My issues is kind of pointless. Thanks!. Closing.

from distinctipy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.