Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My heatmap is blank #509

Open
Su870 opened this issue Jan 13, 2023 · 1 comment
Open

My heatmap is blank #509

Su870 opened this issue Jan 13, 2023 · 1 comment

Comments

@Su870
Copy link

Su870 commented Jan 13, 2023

I am trying to create a heatmap with the follow data: It is a lot of data points, this is just a preview. Any ideas on why it is blank?

       TF         target   importance
0     ZIC5     ZIC2  244.284998
1     DLX6     DLX5  146.211550
2  FOXD4L6  FOXD4L3  139.951544
3    DDX43     OOEP  133.502314
4  FOXD4L3  FOXD4L6  132.367859
5     DLX5     DLX6  131.638314
6    FOXD4  FOXD4L1  128.395748
7   HOXA11   HOXA10  112.056258
8    HOXA2    HOXA3  110.962698
9     ZIC2     ZIC5  109.077028

CODE BELOW:

import os
import glob
import pickle
import pandas as pd
import numpy as np
import scanpy as sc
import loompy as lp

from dask.diagnostics import ProgressBar

from MulticoreTSNE import MulticoreTSNE as TSNE

import seaborn as sns
import matplotlib.pyplot as plt

df = pd.read_csv("adj.tsv", sep='\t')
print(df.head(10))
df = df.pivot("TF", "target", "importance")
hm = sns.heatmap(df, linewidth = 0.5, cmap = 'coolwarm')

Screenshot 2023-01-12 at 9 02 00 PM

@ianhi
Copy link
Collaborator

ianhi commented Jan 13, 2023

Hi @Su870 it doesn't look like you're using ipympl in this case. I suggest a better venue for this question is discourse.matplotlib.org or perhaps the seaborn issue tracker if you determine that this a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants