Skip to content

Commit cd81cba

Browse files
committed
fix bug of annot
1 parent 1df7d57 commit cd81cba

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

PyComplexHeatmap/clustermap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,10 +700,11 @@ def plot_heatmap(
700700
mesh.update_scalarmappable()
701701
height, width = annot_data.shape
702702
xpos, ypos = np.meshgrid(np.arange(width) + 0.5, np.arange(height) + 0.5)
703+
# print(mesh.get_array().flat)
703704
for x, y, m, color, val in zip(
704705
xpos.flat,
705706
ypos.flat,
706-
mesh.get_array(),
707+
mesh.get_array().flat,
707708
mesh.get_facecolors(),
708709
annot_data.flat,
709710
):

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PyComplexHeatmap is a Python package to plot complex heatmap (clustermap). Pleas
1717

1818
## Dependencies:
1919
----------------------
20-
- matplotlib>=3.3.1
20+
- matplotlib<=3.7.5
2121
- numpy
2222
- pandas
2323
- scipy

notebooks/kwargs.ipynb

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ write_to = 'PyComplexHeatmap/_version.py'
1010
[project]
1111
name = "PyComplexHeatmap"
1212
dynamic = ["version"]
13-
dependencies = ["matplotlib","numpy","pandas>=1.3.5", "scipy","palettable"]
13+
dependencies = ["matplotlib","numpy","pandas>=1.3.5", "scipy","palettable"] #matplotlib<=3.7.5
1414
authors = [
1515
{ name="Wubin Ding", email="ding.wu.bin.gm@gmail.com" },
1616
]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
author_email="ding.wu.bin.gm@gmail.com",
2929
url="https://github.com/DingWB/PyComplexHeatmap",
3030
packages=["PyComplexHeatmap"], # src
31-
install_requires=["matplotlib","numpy","pandas>=1.3.5", "scipy","palettable"],
31+
install_requires=["matplotlib","numpy","pandas>=1.3.5", "scipy","palettable"], #matplotlib<=3.7.5
3232
include_package_data=True,
3333
)
3434
# rm -rf dist && rm -rf PyComplexHeatmap/PyComplexHeatmap.egg-info/

0 commit comments

Comments
 (0)