question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to specify custom palette for a category?

See original GitHub issue

Hello! cellxgene is looking great! I just got a brief demo from @colinmegill and one of my questions is, how can one specify a custom color palette for a particular category? For example, for the paper we had this palette in a centralized place that we could grab, but could also have as a column in the scanpy anndata object. If there was e.g. cell_ontology_class and cell_ontology_class_color columns, would that work? Warmest, Olga

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
colinmegillcommented, Jul 15, 2019

@wikiselev && @cakirb add support to this issue (thanks for the feedback!) and points to https://bioconductor.org/packages/release/bioc/vignettes/iSEE/inst/doc/ecm.html as a potential pattern.

1reaction
jenzoprcommented, Jan 29, 2020

Hi Colin! Thanks for the heads up. It would be a miss, if you asked me. We envision using cellxgene complimentary to our published work - and having colors matched between the paper and the cellxgene would be great! Unfortunately, none of our group members is an expert in JS, so I guess contributing code is out of reach for us. Is there another way how we could help you with that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom palette for categories - YouTube
This video was in response to a question at Painter Factory. I didn't repeat the question, so I set the video to unlisted...meaning...
Read more >
How to use your own color palettes with Seaborn
How to use your own color palettes with Seaborn · import numpy as np import pandas as pd import seaborn as sns ·...
Read more >
Create Custom Color Palettes
Create custom color palettes · In the Preferences. · Save the Preferences. · Open a data source, such as the Superstore - Sample...
Read more >
Custom Chart Colors and Brand New Palettes
To get started, under Settings > Themes & Colors, create a name for your color palette and select a palette type to start...
Read more >
D.5 Defining and using custom colors | Data Science for ...
And once we defined new color palettes, we need to know how we can use them in ... which defines color-class objects that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found