Questions tagged [heatmap]

A heat map is a graphical representation of data where the individual values contained in a matrix are represented as colors.

A heat map (or heatmap) is a graphical representation of data where the individual values contained in a matrix are represented as colors.

Heat maps can be used to display statistics (especially in statistical computing and graphics), user experience on websites.

An example of a heat map:

Source: seaborn.heatmap

Additional Resources

Related Tags

4357 questions
1
vote
1 answer

Changing the colour palette based on quantile values in pheatmap

enter image description hereI am very new to R and I am trying to make a pheatmap out of my data. I just copied some existing code included in a tutorial and it seems it pretty nicely fitted to my data after some tweaking. I also included some…
1
vote
0 answers

How to arrange data structure for pcolormesh?

I have data below with much more data points. I want to create a heatmap(potential landscape) of X,Y, Z. X and Y are the positions, whilst Z is the corresponding values of the position for coloring. They're in three arrays of equal length. X = [0.2,…
1
vote
1 answer

Remove colorscale from last row and column of a plotly imshow / heatmap

I have a matrix with which i am plotting the following plot. As one could see the total row and column part of the plot dominates the colorscale which in turn diminishes the visual effect of other values. My goal is to remove the color scale from…
1
vote
0 answers

Vite and Heatmap React Refused to execute script from because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled

I'm on a React app created with Vite. I need to use the Heatmap libraries on Leaflet which I load like this on the index.html file: Locally it runs ok, I…
Daniel Tkach
  • 576
  • 2
  • 9
  • 18
1
vote
1 answer

Spatial heatmap with given value for colour

I built upon this thread to plot a spatial heatmap. The difference is that I do not want to compute the density of points because I already have the value for the level of "heat". In detail I want to plot the population density of the canton of…
Oubi
  • 35
  • 5
1
vote
1 answer

Matrix of occurrences of ordinate pair in python

I'm using this code just as a example to make it simple: import pandas as pd data = {'x': [1, 2, 3, 1, 2, 1], 'y': [1, 2, 3, 1, 2, 2]} # create DataFrame df = pd.DataFrame(data) #count how many times each tuple (x,y) happens and pu the value…
Jacquefr
  • 13
  • 4
1
vote
1 answer

custom xlabel ticks in Seaborn heatmaps

I have plotted a heatmap which is displayed below. on the xaxis it shows time of the day and y axis shows date. I want to show xaxis at every hour instead of the random xlabels it displays here. I tried following code but the resulting heatmap…
Kathan Vyas
  • 355
  • 3
  • 16
1
vote
1 answer

R package circlize: circos heatmap colors not showing up

I am trying to create a circular plot using circlize package. When using hex color codes, my plot does not show up anything but when I use actual color names, it shows. Why is that? Code: suppressPackageStartupMessages({ library(tidyverse) …
Komal Rathi
  • 4,164
  • 13
  • 60
  • 98
1
vote
0 answers

Using Hexbin with the symlog scale

I want to use a hexbin plot with a 'symlog' scale. Native options allow to use a 'log' scale but not a 'symlog'. Do you see an easy method to obtain it ? The best that I can do is to produce 2 plots and put one next to the other. Here is a minimum…
Alexll7
  • 26
  • 3
1
vote
0 answers

How to range the y axis of heatmap

I created a heatmap by using the following data weekdays hours 0 6 22:00 1 6 22:00 2 0 06:00 3 0 10:00 4 0 10:00 ... ... ... 153 1 12:00 154 1 12:00 155 1 12:00 156 1 12:00 157 1 12:00 ax =…
Shan
  • 180
  • 1
  • 2
  • 13
1
vote
1 answer

How to reduce font size in savefig code in pandas

I have created a correlation matrix in pandas using this code: corr=data.corr() I have then saved the correlation heatmap with this code plt.figure(figsize=(16, 6)) mask = np.triu(np.ones_like(data.corr(), dtype=np.bool)) heatmap =…
Giampaolo Levorato
  • 1,055
  • 1
  • 8
  • 22
1
vote
0 answers

Plot a heatmap using two columns of a pandas dataframe as two parameters

I have a pandas dataframe which has around 2000 rows and it looks like this: qba_alias_prob y_score 0 0.3016 0.391449 1 0.8735 0.463365 2 0.5530 0.405257 3 0.5984 0.706649 4 …
1
vote
1 answer

How to set fixed color ranges with Seaborn heatmap?

I am trying to make a heatmap with the Seaborn package, where I define my own color ranges. However, I cannot get the legend to show the values in a non-continous way. I would like the following color indication: 0-0.001: green 0.001-0.25:…
1
vote
2 answers

How to change the font labels of heatmap

I would like to use the following heatmap generated with Python: import seaborn as sn import pandas as pd import matplotlib.pyplot as plt # CMG array = [[129, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 15,…
user1993416
  • 698
  • 1
  • 9
  • 28
1
vote
1 answer

Creating Density/Heatmap Plot from Coordinates and Magnitude in Python

I have some data which is the number of readings at each point on a 5x10 grid, which is in the format of; X = [1, 2, 3, 4,..., 5] Y = [1, 1, 1, 1,...,10] Z = [9,8,14,0,89,...,0] I would like to plot this as a heatmap/density map from above, but all…
Luka Vlaskalic
  • 445
  • 1
  • 3
  • 19