Comments (4)
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.
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.
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.
Sorry, I understand this a bit better. My issues is kind of pointless. Thanks!. Closing.
from distinctipy.
Related Issues (20)
- Update docs for new API
- Check and improve docstrings HOT 1
- Automate code quality checks
- Tighten up API
- Accompanying paper HOT 1
- Add algorithm description to docs
- Add pre-commit config
- Conda package?
- Improve tests and coverage
- Optionally always generate same color pallete HOT 2
- [Feature request] Add class `Color` HOT 4
- MANUALLY RE-ORDER COLORS FROM CREATED DISTINCT COLORS HOT 2
- Including test suite in pypi tarball HOT 1
- color_swatch() font size problems with less than 9 colors HOT 6
- Use W3C guidelines for text colour choice HOT 1
- Python 3.7 is broken in 1.3.x HOT 1
- Improve font colour selection HOT 1
- Add tests
- Generate documentation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distinctipy.