heatmap Questions

3

Solved

I am trying to produce a heat map using ggplot2. I found this example, which I am essentially trying to replicate with my data, but I am having difficulty. My data is a simple .csv file that looks ...
Miguel asked 6/12, 2011 at 20:29

5

Solved

I'm trying to plot log ratios from the range -3 to 3 and want negative ratios to be green and positive to be red, with a log ratio of 0 (center) to be white in color. None of the pre-existing color...
Obstipation asked 7/7, 2016 at 13:19

5

I am attempting to create a Seaborn heatmap to visualize scientific measurements. The heatmap should display vertical depth on the y-axis, time on the x-axis, and the intensity of the measurement a...
Swetlana asked 2/12, 2016 at 5:35

4

Solved

I am having trouble removing the white lines between tiles in my heat map. Below is my code and picture. Has anyone encountered this before? t <- ggplot(Drug_heatmap_df_final, aes(x=reorder(D...
Moffett asked 8/3, 2018 at 17:30

7

Solved

What I'd like to do is take this matrix: > partb 0.5 1.5 1a 1b -2 -3 A1FCLYRBAB430F 0.26 0.00 0.74 0.00 0.00 0.00 A1SO604B523Q68 0.67 0.33 0.00 0.00 0.00 0.00 A386SQL39RBV7G 0.00 0.33 0.33 0....
Emancipate asked 24/9, 2010 at 17:32

1

Solved

There is a similar question, but it only asks this for a regular figure. The respective answers do not work with subplots: https://mcmap.net/q/994235/-how-to-set-heatmap-aspect-ratio https://mcmap....
Pouch asked 19/1 at 15:23

5

Solved

I don't get how to create a heatmap (or contour plot) when I have x, y, intensity. I have a file which looks like this: 0,1,6 0,2,10 .... So far: with open('eye_.txt', 'r') as f: for line in f...
Drouin asked 26/11, 2015 at 15:56

1

Let's say we would like to do a heatmap from three 1D arrays x, y, z. The answer from Plotting a heat map from three lists: X, Y, Intensity works, but the Z = np.array(z).reshape(len(y), len(x)) li...
Theurich asked 15/1 at 15:37

4

Solved

I want to add a title to a seaborn heatmap. Using Pandas and iPython Notebook code is below, a1_p = a1.pivot_table( index='Postcode', columns='Property Type', values='Count', aggfunc=np.mean, fi...
Nalor asked 22/9, 2015 at 18:3

4

Solved

I have a data set made of 22 categorical variables (non-ordered). I would like to visualize their correlation in a nice heatmap. Since the Pandas built-in function DataFrame.corr(method='pearson',...
Davina asked 30/12, 2017 at 15:43

4

Solved

Please look at this github page. I want to generate heat maps in this way using Python PIL,open cv or matplotlib library. Can somebody help me figure it out? I could create a heat map for my netw...

2

I would like to remove the lines that separate the cells in a saved pdf. I tried setting the linewidth=0.0, but the lines are still showing. import pandas as pd import numpy as np import seaborn a...
Nomothetic asked 20/11, 2014 at 13:14

2

Solved

I have a chart on which I want to plot a heat map; the only data I have is humidity and temperature, which represent a point in the chart. How do I get the rectangular type of heat map on the cha...
Teratology asked 31/3, 2016 at 20:0

2

Solved

I am using heatmap from Plotly. I want to use a logarithmic scale for the color but cannot find how to do so. Here is a MWE: import plotly.graph_objects as go import numpy as np z = [[1e-4,1e-3,1e...
Conifer asked 13/7, 2021 at 20:5

3

Solved

I am using pheatmap to create a heatmap of values and would like to label the legend with the units of the z values in the matrix. In this example I would like the top of the legend to say Temperat...
Bergerac asked 25/4, 2016 at 22:17

8

Solved

Assuming values are normalized from 0 to 1, what is the algoritm to get a color to create a heatmap like this? 1 is red, .5 is green, 0 is dark blue. Working in RMagick / ImageMagick.
Misadventure asked 13/10, 2012 at 18:0

2

Solved

I need to set the max value on the seaborn heatmap cbar to 2. I've tried: cbar_kws = { 'ticks' : [0, 2] } sns.heatmap(tiles, robust=True, fmt="f", cmap= 'RdBu_r', cbar_kws = cbar_kws) Bu...
Waldo asked 18/11, 2015 at 12:12

2

Solved

I have a dataset with values -4 to 4 and some nan values. I plot the heatmap using seaborn heatmap. Colormap I need to use is from red to white to blue. My problem is masked cells are also white/gr...
Torritorricelli asked 18/9, 2018 at 19:4

3

Solved

I'm creating a heatmap from a pandas pivot_table as below: table2 = pd.pivot_table(df,values='control',columns='Year',index='Region',aggfunc=np.sum) sns.heatmap(table2,annot=True,cmap='Blues') I...
Caveat asked 15/4, 2015 at 10:25

3

Solved

I have done a Heat Map using the function heatmap.2 of gplots in R, but I don't have an idea of how to coloring the branches and tick labels per groups (Eg. if I cut the tree to have four gruops li...
Apprentice asked 25/3, 2015 at 20:8

1

I want to create a heat map using Google API (Javascript). The problem is that Heatmaps use colors to represent the density of points. But, in my case the density of points is irrelevant. I want to...
Wyman asked 21/7, 2014 at 12:30

11

Solved

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= ['aaa','bbb','ccc','ddd...
Rawboned asked 5/9, 2012 at 17:18

1

Solved

I want to plot data in a heatmap in Plotly and include a slider to toggle between different categories of a certain slider column. I am currently able to update the text in the hovertemplate, but I...
Hartzke asked 23/12, 2022 at 19:18

1

I'm calling getImageData/putImageData a lot and it causes my Chrome process to fill up until it crashes when it reaches 2.5Gb memory. I'm using simpleheat.js with a leaflet heat map plugin to disp...
Tref asked 6/9, 2016 at 18:57

3

Solved

I'm working on a heat map made up of an HTML table. This table contains n cells and has a lowest value and a highest value (highest is always higher than lowest). Each cell has a cell value. All th...
Catlee asked 23/7, 2013 at 22:4

© 2022 - 2024 — McMap. All rights reserved.