nxviz icon indicating copy to clipboard operation
nxviz copied to clipboard

colormap changes

Open zeneofa opened this issue 7 years ago • 4 comments

Hi,

Would it be possible to expose a cmap kwargs for the respective plots? The accent colours on certain devices make it difficult, especially for colour blind individuals, to distinguish the colours. I used the set13 or paired colormaps from palettable.colorbrewer. It would be nice if the user can supply his/her own colour map.

zeneofa avatar May 07 '18 15:05 zeneofa

@zeneofa yes, definitely! Are you willing to put in a PR for this?

ericmjl avatar May 07 '18 16:05 ericmjl

sure, I can put something together :), will have to be a bit later though...

zeneofa avatar May 07 '18 16:05 zeneofa

Not a problem. I'm also a bit swamped at the moment, which is why I asked :smile:. Looking forward to the PR!

Some things that I can think of that will help with usability include:

  • docstrings
  • error messages for invalid colormaps
  • an example use case that can be executed.

ericmjl avatar May 07 '18 16:05 ericmjl

Work in progress branch node_cmap.

It is missing

  • Error handling
  • Tests

Anyone willing to take a crack at finishing the implementation is more than welcome.

Rabeez avatar Jan 16 '20 15:01 Rabeez