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
0 answers

Seaborn Heatmap Colorbar does not show Zero

I created custom tick labels for my heatmap colorbar. The zero does not get printed. Is there a way to also print the zero? My code: import seaborn as sns Granger2 = Granger Granger2.columns = Granger_colnames Granger2.index =…
Ben
  • 183
  • 8
1
vote
1 answer

Making a heapmap with p values after pairwise comparisons

I'm running multiple pairwise comparisons on grouped factors and I would like to represent the resulting p-values with a heatmap. This is a small example of what my dataset looks like, but in reality, it is much more complicated. My factors are site…
Valen78
  • 115
  • 6
1
vote
1 answer

Heatmap of common values between columns in dataframe

I have a Pandas dataframe df with two columns, A and B such that all values in B would be different for a value in A, but two different values in A can have duplicate values in B. A B ABC1 XYZ XYZ 123 ABC2 XYZ XYZ 123 ABC1 …
harry04
  • 900
  • 2
  • 9
  • 21
1
vote
1 answer

How to cross hatch data gaps in a heatmap

I seek some help to plot a heat map which should look like this: The data set that one can use along x axis is an array of years from 1975 to 2018 [1975,.....2018] For y axis: An array of month [January to December] For x-y intersection values, as…
Prater
  • 107
  • 1
  • 8
1
vote
1 answer

Seaborn heatmap, how to specifiy x,y axes from data frame

I have a data frame with three columns, two of them are positions x & y and the third one is an error. I would like to plot the error for each combination of (x,y) position combination on a heat map but I'm failing miserably. I tired the…
the phoenix
  • 641
  • 7
  • 15
1
vote
1 answer

Chunk 2D array into smaller arrays, get the chunk means, and plot a heatmap

I want to make a heatmap using seaborn. I have a 1920x1080 2D array that contains saliency values of each pixel of an image from 0-1 (0=lowest saliency-blue color, 1=highest saliency-red color). I have divided my image into smaller grids of 80x90…
Phoenix
  • 73
  • 6
1
vote
1 answer

Creating a heatmap with uneven block sizes / stacked bar chart using Python

I want to create a heatmap in Python that is similar to what is shown on the bottom of this screenshot from TomTom Move: https://d2altcye8lkl9f.cloudfront.net/2021/03/image-1.png (source: https://support.move.tomtom.com/ts-output-route-analysis/) A…
dyrjohn
  • 11
  • 2
1
vote
1 answer

Python: Heatmap with pivoted data giving duplicate error

The first 20 observations in my data are: id day hour consumption 0 012af199245dedacf9ea0ba6eedef4e89272c7dc Saturday 8 0.000000 1 019ebd48fe9c9ab20051e9de1d5ddfc6fd13c55b …
Joehat
  • 979
  • 1
  • 9
  • 36
1
vote
1 answer

How to choose date frequency and day of display with Seaborn Heatmap

I have a DataFrame with several columns and date as index. I use sns.heatmap to plot it, with the date on the y-axis. I would like to force the ticks to display the 1st of October of every year only. I used the solution given by @Ayrton Bourn on…
Nihilum
  • 549
  • 3
  • 11
1
vote
1 answer

How to reshape a pairwise comaprison into matrix and create a correlation heatmap in R?

I hope someone can help me with this. I have this dataframe, an output of the dunnTest(), which contains the pairwise comparison and the p-values. The sample output of dunnTest() is below. What I am trying to do is to reshape the dataframe into a…
1
vote
0 answers

Gradient calculation in tensorflow imported graph_def of pb file(object detction)

I am looking to calculate a grad-cam heatmap for an object detection trained model. With TensorFlow Keras models it seems to be simple with tf.GradientTape() as tape: inputs = tf.cast(image, tf.float32) (convOutputs, predictions) =…
Lord Mord
  • 21
  • 1
1
vote
1 answer

Center specified tick labels for matplotlib's pcolomesh at the boxes

I do not understand, how to properly plot my heatmap (pcolormesh) with matplotlib. I want the tick's labels be centered below/beside the corresponding boxes - and only my given data, not some artificially extended ranges. In the docs I found an…
parrott
  • 368
  • 4
  • 12
1
vote
1 answer

Wrong associated color for the highest values in my gnuplot 3D heatmap graphic

I am trying to make a 3D color plot with pm3d in Gnuplot. It is heatmap for a heat transfer problem in a cube. So, I have 4 columns in my data file: x, z, t and T which are respectively the horizontal coordinate, the vertical coordinate,the current…
Jejouze
  • 23
  • 6
1
vote
1 answer

set x axis on ggtree heatmap in R

I would like to set x axis on a heatmap ggtree. This is my code ggtree(working_tree,open.angle=15, size=0.1) %<+% avian %<+% color + aes(color = I(colour)) + geom_tippoint(size = 2,) + geom_tiplab(size = 3, colour = "black") + …
Anh
  • 735
  • 2
  • 11
1
vote
1 answer

How to force matplotlib heatmap cells to be rectangular?

I am using pcolormesh to create a heatmap. heatmap = plt.pcolormesh( grid, edgecolors="k", cmap=colors.ListedColormap( [ "white", "red", "blue", "green", "orange", …
YNWA
  • 45
  • 7
1 2 3
99
100