DingWB / PyComplexHeatmap

PyComplexHeatmap: A Python package to plot complex heatmap (clustermap)
https://dingwb.github.io/PyComplexHeatmap/
MIT License
297 stars 32 forks source link

The color of the histogram does not match the original data frame #10

Closed welyt closed 1 year ago

welyt commented 1 year ago

df_bar = pd.DataFrame(np.random.uniform(0, 10, (10, 3)), columns=['TMB1', 'TMB2', 'TMB3']) print(df_bar) plt.figure(figsize=(6, 6)) col_ha = HeatmapAnnotation(bar=anno_barplot(df_bar,legend=True), plot=True,legend=True,legend_gap=3, legend_width=20) plt.show() image

DingWB commented 1 year ago

It has already been fixed in the new version.