Questions tagged [heatmap]
A heat map is a graphical representation of data where the individual values contained in a matrix are represented as colors.
3,945
questions
0
votes
0
answers
10
views
Show better representation of small values of 2D plot
I am trying to make a 2D plot of a function 1/(xy) but the y values vary from 3 orders of magnitude which makes the graph look unreadable. On top of that, I am trying to emphasize the small values of ...
1
vote
1
answer
29
views
Rearranging the columns of my heatmap using python's seaborn
I'm trying to visualize the following .csv data:
Q1,Q2,Q3,Q4,Q5,Q6,Q7,Q8,Q9,Q10,Q11,Q12,Q13,Q14,Q15,Q16,Q17,Q18,Q19,Q20
4,4,2,2,4,2,3,5,3,4,2,5,2,1,4,4,2,1,5,2
2,2,4,4,4,2,2,2,4,4,2,4,2,2,3,2,2,4,5,2
...
0
votes
1
answer
14
views
How to make Highcharts Heatmap colors not gradient/percentage based, make the color value range based
I want the colors to be like the Gitlab's Contribution Heatmap (bottom left is the color range):
// [value, color]
stops: [
[0, '#ededed'],
[1-9, '#acd5f2'],
[10-19, '#7fa8c9'],
[20-...
0
votes
0
answers
8
views
leaflet-webgl-heatmap - TypeError: leaflet__WEBPACK_IMPORTED_MODULE_6___default.a.webGLHeatmap is not a constructor
I am using leaflet-webgl-heatmap in my VueJs application. It is giving me the following error:
TypeError: leaflet__WEBPACK_IMPORTED_MODULE_6___default.a.webGLHeatmap is not a constructor
The code is ...
0
votes
1
answer
22
views
How do I combine scale elements by discrete color on ggplot heatmap?
output$fairness_heatmap <- renderPlot({
# Check the user's selection
heatmap_data <- NULL
groups <- NULL
values <- NULL
color <- NULL
if (input$fairness_metric =...
1
vote
2
answers
43
views
How to change the column order according to the category list?
I have a dataframe df and the column cats is categorical, as:
> df['cats'] = pd.Categorical(df['cats'], categories=['A+', 'A', 'B+', 'B', 'C', '-'], ordered=True)
From df I got a df1 like the ...
1
vote
2
answers
53
views
Heatmap with multiple conditions and custom ranges
I want to build custom heatmap with color ranges based on multiple conditions.
I found a similar post that focuses on Heatmap with conditions. However, it does not address my question of having ...
0
votes
1
answer
19
views
Advice - Ranked Heatmap in R or Python or Highcharts
So this is a bit of a open question and any feedback would be appreciated. Essentially, I want to create the below chart (possibly in highcharts, highcharter, python or just R). What is the name of ...
0
votes
0
answers
53
views
Gnuplot.jl heatmap axis labeling non-uniform grid
I have a problem plotting heatmap with log colorbar with Gnuplot.jl. I currently use the following code
using Gnuplot
@gp P_save "w image notit" "set logscale cb"
which generates ...
-1
votes
0
answers
36
views
Creating heatmap of diagonal matrix using seaborn [closed]
I am using the following code to generate a heatmap of a diagonal matrix where the data values range from 94.3 to 100. But I am not getting a color gradient but a single color. Can anyone tell me what'...
0
votes
0
answers
19
views
Plotly Heatmap: specify a hovertemplate for each data point
For plotly Heatmap, how should I specify a different hovertemplate for each data point? If I specify hovertemplate as a 2D array, it does not show any hover information.
data = [[1, 2, 3],
[1, 2,...
0
votes
0
answers
26
views
Folium Chloropleth not showing colors
Geojson File: https://raw.githubusercontent.com/sejal234/heatmaps_by/main/Zip_Codes.geojson
CSV: https://raw.githubusercontent.com/sejal234/heatmaps_by/main/oyzipsattempt.csv (this is labelled new in ...
0
votes
0
answers
13
views
Uncaught RangeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': Out of memory at ImageData creation
I am using heatmapjs to show multiple heatmap layers. I want to toggle layers dynamically. I have enabled two layers by default. When I run code, whenever heatmap renders I am getting following ...
1
vote
1
answer
47
views
How to add spacing between each block of a heatmap
I have a matrix like this. Is there a way I can add some white lines between it without changing the scaling. I have used matplotlib for this graph:
Something like this should work.:
Code ->
# ...
0
votes
0
answers
33
views
why seaborn plot matrix doesn't show the numbers in center of matrix? [duplicate]
I'm trying to plot a confusion matrix with seaborn. here is my code:
u=['Fire','No Fire']
v=['Fire','No Fire']
plt.figure(figsize=(5,5),dpi=500)
plt.rcParams["font.family"] = "serif&...
0
votes
1
answer
58
views
"Crossing off" tiles on a heatmap
For a heatmap made using ggplot and geom_tile, how would you "cross off" a tile based on a conditional value?
The heatmap shows counts of the number of times an animal performed a behavior ...
-1
votes
0
answers
21
views
Changing font size in ggcorrplot2
I am using ggcorrplot2 to visualise a correlation matrix.
ct <- corr.test(df, use = "pairwise", method="kendall", adjust = "none")
corr <- ct$r
p.mat <- ct$p
p &...
0
votes
0
answers
29
views
Points with different radius using HeatMapWithTime in Folium
I'm trying to plot a heatmap timelapse using Folium. However, I need each point to have a different radius.
I've tried the following:
from folium import plugins
map_hooray = folium.Map(location=[-23....
-1
votes
0
answers
44
views
Plotting 2D array in python
I am trying to plot a 2D array in python. But the plot is all in the same color.
data_geo
Out[11]:
matrix([[ 0., 57., 47., ..., 0., 0., 0.],
[57., 0., 48., ..., 0., 0., 0.],
[...
0
votes
0
answers
24
views
ThingSpeak data to Tableau
I am really new to all of this so bear with me. I have a PMs5003 sensor connected to a nodemcu esp8266. I have a program that sends the air quality data to ThingSpeak, but I now want to send the data ...
-1
votes
0
answers
24
views
Google Maps JS API - Create a heatmap layer based on segments rather than points
We currently use Google Map API's "heatmap layer", and the input we pass to the library is a set of points (latlng):
new window.google.maps.visualization.HeatmapLayer({
data: [ p1, p2, p3 ]...
0
votes
0
answers
14
views
Plot Gaze Heat Map on PNG
With this code I want to plot a heat map from eye tracking gaze data (x, y coordinates on screen) on top of a png. I got really close with other posts here in the forum. The only problem left are some ...
0
votes
0
answers
24
views
Getting issue on react-leaflet version 4.0.0 for implement heatmap and show single country in ReactJs
I implemented react-leaflet on reactJs 18.1.0 version And I have to implement heatmap and showing single country on leaflet map.
I used this package for Heatmap and show single country in React
...
0
votes
1
answer
26
views
Plotting heatmaps of multiple columns using slider in ggplot R
I have the following dataframe
df <- data.frame(
x = rep(c(2, 5, 7, 9, 12), 4),
y = rep(c(1, 2), each = 10),
col1 = rexp(20),
col2 = rnorm(20),
col3 = rexp(20)
)
And this is the plot
...
1
vote
1
answer
28
views
ComplexHeatmap using column_split()
I want to plot a heatplot in r using the library(ComplexHeatmap).
The reason for a complex heatmap is I want to use the function column_split() and create four sections along the x-axis of the heatmap ...
2
votes
1
answer
40
views
Layer image and real time updating heatmap
I have:
An image of an insole with 16 pressure sensors.
A 2*8 numpy array of pressure values for each sensor
Pressure values update in real time every 0.1[s]
I want to:
Display the image in the ...
-1
votes
0
answers
40
views
Heatmap for chest x ray image
I am beginner in python. I want to display heatmap for x ray image. But output shows uploaded image (the same image) only.
im_input =cv2.imread(ip)
lab = cv2.cvtColor(im_input, cv2.COLOR_BGR2LAB)
...
0
votes
1
answer
44
views
Sectioning in Heat Map using ggplot
I'm trying to plot a heat map, but I want the heat map in four different vertical sections. The first one shall be for "Proneural", then "Neural", then "Classical" and ...
0
votes
0
answers
21
views
heatmap from bbox & polygons
I'm working on computer vision,
and I have multiple datasets of pictures, each pic has n number of bbox or polygons depending on the type of dataset, that are detecting an object or something.
I need ...
0
votes
1
answer
85
views
HeatMap using ggplot R
I'm trying to plot a heatmap in R using ggplot2.
A sample of my data is shown below :
tdftan1[1:513,]
structure(list(Row.names = structure(c("TCGA.02.0003.01", "TCGA.02.0010.01",
&...
1
vote
2
answers
46
views
Overlapping labels in heatmap plot
I am producing a heatmap via cooccur package but I am getting overlapping species names. How to solve it?
The plot was produced by the following codes:
M <- cooccur(mat = M, type = "spp_site&...
0
votes
1
answer
32
views
Add a color beside the heatmap
I've built a heatmap but I can't seem to set up groups next to the rows and columns. Please I want something like this heatmap.
#Design of the data as an example
Data <- data.frame(replicate(6,...
-2
votes
0
answers
24
views
Grouping Seaborn Heat Map Data by Number
So I have this code to create a seaborn heat map:
df = pd.crosstab(data_file['Cation'], data_file['Transition Metal'])
df[df == 0] = np.nan
df.sort_index(level=0, ascending=True, inplace=True)
sns....
0
votes
1
answer
24
views
Change Seaborn heatmap Y-ticklabels font color for alternate labels
I have a seaborn heatmap with more than 100 labels on Y-axis. I want to change the font color of the Y-labels to red and blue in alternate way.
If I have 10 Y-labels, then 5 labels should have the ...
0
votes
0
answers
16
views
How to color-code columns in MATLAB Clustergram?
I am trying to label specific columns in a MATLAB cluster gram with particular colors to indicate similarities between columns. I am aware of the ColumnGroupMarker function, but I do not want them ...
0
votes
1
answer
31
views
Seaborn diverging_palette(): colours appear different than expected
I'm trying to create a Seaborn heatmap() of a correlation matrix using a custom diverging_palette(). I'd like to have 100% red at the extremes, and 100% white at the center.
I used the code below, but ...
-2
votes
0
answers
18
views
Heat map generation with methane value for different lat, lon positions on google maps with time stamps [closed]
I have a CSV file with columns as shown in the figure:
Timestamp | Lat | Long | Methane Value
.....
.....
I would like to know how can I create a heat map (using methane values) that changes with time ...
0
votes
0
answers
18
views
Are there any OpenGL operations supporting colors associate with indices as opposed to vertices? [duplicate]
suppose we wish to color a set of triangles in OpenGL (not Gouraud shaded, each triangle has a color).
This could be done with GL_TRIANGLES
There would be a list of points, each with an RGB value:
x y ...
-1
votes
1
answer
26
views
Spacing between heatmap point
I tried to customise leaflet heatmap.js to render rectangles to generate a heatmap. I was doing good so far. But, there are spacing in between rectangles that I can't get rid of. As in the picture.
...
-1
votes
0
answers
18
views
How to get property of google heatmap object in javascript
I added google heatmap to my landing page.
let heatmap = new google.maps.visualization.HeatmapLayer({
radius: 15,
data: heatmapData
});
heatmap.setMap(map);
It's successfully loaded but for now, ...
1
vote
1
answer
33
views
heatmap.js canvas not drawing when hovering content
I'm building a website with a heatmap on it with heatmap.js by Patrick Wied. I manage to make it work and I'm now recording mouse move events as well as click events. Everything works very well except ...
0
votes
1
answer
59
views
Reformatting data and creating heat map
Going to work backwards here.
I want to create a heat map in R that looks like this (apologies for my janky handmade drawing in PowerPoint):
-Where columns are years: 1960s, 1970s, 1980s, 1990s, and ...
0
votes
0
answers
30
views
How can I order my heatmap rows and columns [duplicate]
Hi i have a df like the following:
Viaje_Id Usuario_Id Gender ... age age_step week_day
0 21794399.0 236373.0 M ... 49.0 <50 Monday
1 21804667.0 ...
0
votes
1
answer
73
views
Matplotlib time-based heatmap [duplicate]
Background: I picked up Python about a month ago, so my experience level is pretty slim. I'm pretty comfortable with VBA though years of data analysis through excel and PI Processbook.
I have 27 ...
2
votes
1
answer
25
views
Removing white space around heatmap subplot with shared colorbar
I have the following code that plots 3 heatmaps in a row and then adds a shared colorbar to the right of the heatmaps:
import numpy as np
import matplotlib.pyplot as plt
num_rows = 100
num_cols = 200
...
0
votes
1
answer
23
views
lower triangular heat-map in r
I'm trying to plot a pearson correlation heat map in R on a certain dataset.
The rows and columns of the heat map shall be the same, thus I'm trying to plot a lower triangular plot for it.
The code I'...
0
votes
1
answer
17
views
Enabling scrollbar on y-axis of the highcharts heat map does not work
I am trying to generate a heat map for a large data set with scroll bar enabled on y-axis. Enabling scrollbar on y axis and setting min and max brings up the scroll bar but it is disabled and not ...
0
votes
1
answer
21
views
SNS heatmap shows wrong colors for % values when none of the values are 100. Colorbar range is not 0 to 100%, instead range is btw min and max values
Using seaborn in Python to create a heatmap, how can I have the colorbar show ALWAYS a 0 to 100% range and not the range of the maximum and minimum values of the dataframe. If the code below is ...
0
votes
0
answers
16
views
Alternative to pcolormesh/imshow for variable grid points
I have some data at fixed points in x, but sampled at different values of y.
I want to produce a heat map plot similar to pcolormesh (or imshow etc.).
However, because the y values at which the data ...
0
votes
2
answers
32
views
Adding legend to heatmap in Python / Matplotlib with circles that compare total users, and colors that indicate ratio of abandonment in single graph
I found in SO an explanation to add a legend to this type of graph. However, it does not translate well with my data. I got my graph with circles and shades of colors to work. I do have the legend ...