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.

Introduce a way to add custom colours to COLOR_MAP easily.

See original GitHub issue

It would be extremely useful to the end user if they could add their own colours to the COLOR_MAP/PALETTE without having to modify constants.py.

I’m thinking a section in the cfg files could be added with the entry CUSTOM_COLORS or similar, and the dictionary corresponding to it could be merged with COLOR_MAP at runtime?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
leotrscommented, Sep 1, 2020

I’m not sure that Enum should be implemented at all. I think we should discuss/implement/close #342 before coming back and reconsidering this one .

0reactions
leotrscommented, Dec 2, 2020

I think I like that idea. This allows for a clean core and complete freedom to determine how color themes work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Simple steps to create custom colormaps in Python
To reproduce this colormap in python, we first need to know the colors of some of the anchor points, the more anchor points...
Read more >
View and set current colormap - MATLAB colormap - MathWorks
Create a custom colormap by defining a three-column matrix of values between 0.0 and 1.0. Each row defines a three-element RGB triplet. The...
Read more >
Create own colormap using matplotlib and plot color scale
This can easily be created from a list using the from_list method. import numpy as np import matplotlib.pyplot as plt import matplotlib.colors x,y, ......
Read more >
Creating Colormaps in Matplotlib
The list of colors that comprise the colormap can be directly accessed using the colors property, or it can be accessed indirectly by...
Read more >
[Salome Meca Tutorial] Customizing the Color Map - YouTube
Want to change the default colors to get a beautiful new color map ?Let's see how to do exactly that in Paravis, the...
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