Questions tagged [color-mapping]
A color map is used when displaying intensity images (2D arrays). The color maps intensity values to RGB colors of the display.
color-mapping
200
questions
0
votes
1
answer
30
views
R plot_ly How to set the color of markers in add_markers() with my own color vector in a correct mapping way
My data frame looks like this:
Column A
Column B
Column C
7
groupA
red
8
groupA
red
5
groupB
grey
4
groupC
blue
5
groupD
yellow
Here is my code:
p <- plot_ly(df) %>%
add_markers(...
0
votes
0
answers
66
views
How to convert image from one custom colormap to another custom colormap Python
I have a video file which is black and white and I want to convert it to a rgb colormapped video. But instead of black to white, a custom colormap as follows - I just want to think of black to white ...
0
votes
0
answers
26
views
How to display GPX track with scalar values in leaflet?
I know how to write js code to display data from a gpx file in leaflet:
enter image description here
I know how to extract data from this gpx file to convert it to a NumPy array and display track as ...
0
votes
0
answers
27
views
Holoviews Heatmap not displaying when using explicit color mapping
I'm attempting to create a categorical heatmap in holoviews. My pandas dataframe looks like this:
defline msa alnpos loc pos clustal
236522 ...
0
votes
0
answers
33
views
How does a 6 channel color correction matrix work?
I would like to know how to implement a colour correction algorithm. Specifically, I want to simulate the color correction sliders of a JVC projector in my own code for a custom calibration program.
...
0
votes
0
answers
44
views
I want to create a contour plotting software with colour mapping(pressure map) using java and I'm planning to implement this on an .exe file
I'm new to java and java coding, so far I was only able to create a sphere which can be rotated and zoomed but my actual body is not a sphere, it is actually a body with its own specific shape. ...
-2
votes
1
answer
212
views
Matplotlib imshow is ignoring cmap, vmin, vmax for ax.imshow subplots [closed]
I am trying to make subplots of small images of data and I am finding it completely impossible to adjust the cmap/vmin/vmax for any of these images. No matter what I can't figure out how to change the ...
2
votes
1
answer
949
views
Plotly Express Pie Chart color_discrete_map not working
Despite digging over all the web (ok, close) I still can't make this simple pie chart color mapping to work properly.
Thanks to the community, I saw that we have to repeat the color='my_column' ...
0
votes
1
answer
42
views
Color Mapping using LUT for BlackAndWhite pic, how to map the mono(maybe luminace) to mono or color value?
the input param for LUT should be the luminance?
if so, for colorPic: luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b, right?
but for monoPic(blackAndWhite): should it be luminance = r/g/b?(as r==g==...
0
votes
0
answers
268
views
How can I create a scatter plot from a Pandas dataframe using one column for x, one column for y, one column for color, and one column for marker?
I have data in a pandas dataframe that I need to plot as a scatter plot, but I need to both colormap the points to a third column (day) and vary the marker style based on a fourth column (set). My ...
0
votes
0
answers
43
views
Why are there Horizontal Stripes on my Palettized Image?
I am trying to make a palettized version of my height image data (using Python/Matplotlib) and for some reason...it is giving me quite weird horizontal lines which I know are not actually present in ...
0
votes
0
answers
97
views
How to effectively do a color mapping?
Given an image I'd like to map each pixel color to a different color. Currently, I'm taking each pixel and comparing against some color ranges, and if the pixel color lays inside that given range, I ...
0
votes
1
answer
111
views
How to make a figure of a keyboard where each key has its own color
I would like to prepare images of keyboards where each key can be assigned a different color. I have seen the Python keyboardlayout package but it is not clear how to control the color of the keys. ...
0
votes
0
answers
205
views
Create color map with specific ranges for each color and use html color codes [duplicate]
I have been looking around on ways to manipulate a color map and found several articles both here on stack exchange, in the matplotlib documentation (here) and various tutorials. I have found many ...
0
votes
1
answer
380
views
How to map colors in an image to a palette fast with numpy?
I have two arrays. One is an image array and the other is a palette array.
Both have elements containing 8-bit RGB channels. I need to replace every color in the image with the closest color in the ...