-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,47 @@ | ||
# scTriangulate colors module | ||
|
||
## An One Stop solutions for any color related problem in Python | ||
## An One Stop solutions for any color related problems in Python | ||
|
||
As a seperate module in scTriangulate, `colors` module contains several handy functions for the tasks that you may frequently encounter in your analysis. If you have any feature request, please let me know and I will implement and add them to the modules. | ||
|
||
### pick_n_colors | ||
|
||
Imagining you just want to have `n` discrete colors to represent `n` differnet entities, the entity can be different categories, different batches, different countries, etc. This function will do the job for you, `n` can be any arbitrary interger. | ||
|
||
See [pick_n_colors] | ||
See [pick_n_colors](https://sctriangulate.readthedocs.io/en/latest/api.html#pick-n-colors) API for more details. | ||
|
||
![pick_n_colors](./pick_n_colors.png) | ||
|
||
### colors_for_set | ||
|
||
Similar to the scenario as `pick_n_colors`, but if you want to obtain a dictionary/mapping of your entities to the colors, this function do the job for you. | ||
|
||
See [colors_for_set](https://sctriangulate.readthedocs.io/en/latest/api.html#colors-for-set) for more details. | ||
|
||
![colors_for_set](./colors_for_set.png) | ||
|
||
### build_custom_continuous_cmap | ||
|
||
So this function allows you to build any custom continous colormap at your own wills. | ||
|
||
See [build_custom_continuous_cmap](https://sctriangulate.readthedocs.io/en/latest/api.html#build-custom-continuous-cmap) API for more details. | ||
|
||
![build_custom_continuous_cmap](./custom_continuous_cmap.png) | ||
|
||
### build_custom_divergent_cmap | ||
|
||
This function allows you to build any custom divergent colormap at your own wills. | ||
|
||
See [build_custom_divergent_cmap](https://sctriangulate.readthedocs.io/en/latest/api.html#build-custom-divergent-cmap) API for more details. | ||
|
||
![build_custom_divergent_cmap](./custom_divergent_cmap.png) | ||
|
||
## bg_greyed_cmap | ||
|
||
This function can make the any matplotlib colormap object's background grey. | ||
|
||
See [bg_greyed_cmap](https://sctriangulate.readthedocs.io/en/latest/api.html#bg-greyed-cmap) | ||
|
||
![bg_greyed_cmap](./bg_greyed_cmap.png) | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.