About 50 results
Open links in new tab
  1. python - Plotting a 2D heatmap - Stack Overflow

    Oct 16, 2022 · Using Matplotlib, I want to plot a 2D heat map. My data is an n-by-n Numpy array, each with a value between 0 and 1. So for the (i, j) element of this array, I want to plot a square at the (i, j)

  2. display a matrix, including the values, as a heatmap

    Sep 25, 2010 · This question is about stats::heatmap in base R, which has been around for a long time - the asker is asking how to make sure stats::heatmap displays the actual values in the matrix as text …

  3. Using two separate custom color scales in a heatmap in R plotly

    Jun 26, 2025 · 0 I've been trying to make a heatmap with different color scales for the upper and lower triangles, but I can't get it to work with anything other than the built-in named color scales. If I try to …

  4. Generate a heatmap using a scatter data set - Stack Overflow

    241 I have a set of X,Y data points (about 10k) that are easy to plot as a scatter plot but that I would like to represent as a heatmap. I looked through the examples in Matplotlib and they all seem to already …

  5. Making heatmap from pandas DataFrame - Stack Overflow

    I have a dataframe generated from Python's Pandas package. How can I generate heatmap using DataFrame from pandas package. import numpy as np from pandas import * Index= …

  6. differences in heatmap/clustering defaults in R (heatplot versus ...

    Dec 4, 2013 · The main differences between heatmap.2 and heatplot functions are the following: heatmap.2, as default uses euclidean measure to obtain distance matrix and complete …

  7. python - Correlation heatmap - Stack Overflow

    Sep 9, 2016 · I want to represent correlation matrix using a heatmap. There is something called correlogram in R, but I don't think there's such a thing in Python. How can I do this? The values go …

  8. python - seaborn heatmap y-axis reverse order - Stack Overflow

    Jun 16, 2023 · Have a look at this heatmap found in the seaborn heatmap documentation. Right now the y-axis starts with 9 at the bottom, and ends with 0 on top. Is there a way to turn this around, i.e. start …

  9. Move a heatmap colorbar on top of the plot - Stack Overflow

    Dec 21, 2017 · I have a basic heatmap created using the seaborn library, and want to move the colorbar from the default, vertical and on the right, to a horizontal one above the heatmap. How can I do this? …

  10. Plot and annotate NaN values in a seaborn heatmap

    Jun 13, 2025 · This question is similar to: seaborn heatmap cell style for nan-Values. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that …