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.

Support non-linear colormaps

See original GitHub issue

A potentially handy feature (we have some data where it could be useful), would be to specify a non-linear color mapping for the data. To simplify the interface, it could be done as piecewise linear mappings, so essentially just passing several stretch ranges with an additional parameter specifying the colormap range. For example:

/z/y/x.png?stretch_ranges=[[0, 100, 5], [100, 200, 25], [200, 255, 226]]

would map raster values 0 too 100 to the first 5 colormap values, raster values 100 to 200 to the next 25 colormap values and raster values 200 to 255 to the remaining 226 colormap values.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

dionhaefnercommented, Jan 28, 2019

This is going to be possible with #128. If you do


you’ll get the layer log-scaled in the interval (1, 100000). Corresponding colorbar:

mrpgraaecommented, Jan 24, 2019

There is also the (minor) inconvenience of having to duplicate the data, if we need it for other things, such as the time-series / value extraction tool we have been talking about.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does MATLAB have a nonlinear colormap? How do I make ...
First, I'd pick an existing colormap, such as Parula. Specify the max and min values of your data (e.g. 34 and -350), and...
Read more >
How to generate a non-linear colormap/colorbar?
It has linear data and a linear colormap. Now I want to scale the Z -Data to get it non-linear like in your...
Read more >
Yet Another Way Colormaps Can Be Used to Enhance Your ...
Make your colormap non-linear​​ I'm going to explain these concepts using MATLAB but it's in general true. A colormap is basically just a...
Read more >
Non-linear Colormap Scale
Non-linear Colormap Scale. You can change the standard display of the Colormap Scale to a non-linear display from the Color Scale Editor dialog...
Read more >
Nonlinear Colormap / Legend - ParaView Support
Hello all,. I have the following question. I would like to create a non-linear legend in Paraview. Coormap_Nonlinear.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found