Open medmaca opened 1 month ago
Hi @medmaca ,
Sorry for this bug.
I have already fixed this bug, could you please uninstall and reinstall from GitHub and test it again?
pip uninstall -y PyComplexHeatmap && pip install git+https://github.com/DingWB/PyComplexHeatmap
Please let me know whether it works or not; I will release a new version if there is no problem.
I have already released a new version (1.7.6). Please let me know whether there is any issue with this release. @medmaca
Hi, thank you so much for such a quick reply and fix. I've now downloaded the latest version and it fixes that example code.
However, I am slightly confused by the merit of that example.
The website example (altered for colour blind, i.e. me): `plt.figure(figsize=(8,8)) cm = pch.DotClustermapPlotter(corr_mat,x='level_0',y='level_1',value='correlation',hue='Level',
# colors={'High':'red','Middle':'purple','Low':'green'},
cmap={'High':'Reds','Middle':'Oranges','Low':'Blues'},
colors={'High':'red','Middle':'orange','Low':'blue'},
marker={'High':'P','Middle':'*','Low':'D'},spines=True,
vmax=1,vmin=0)
plt.show()`
My altered version of the same example: `plt.figure(figsize=(8,8)) cm = pch.DotClustermapPlotter(corr_mat,x='level_0',y='level_1',value='correlation',hue='Level', s='correlation',c='correlation', cmap={'High':'Reds','Middle':'Oranges','Low':'Blues'}, colors={'High':'red','Middle':'orange','Low':'blue'}, marker={'High':'P','Middle':'*','Low':'D'},spines=True, vmax=1,vmin=-1, grid=None)
plt.show()`
The example on the website I find really confusing as the largest diamonds are really the lowest correlations, this makes it really hard to interpret the plot. Am I missing something obvious?
Thanks again for all the hard work you've put into this marvelous package.
Sorry for the inconvenience. I have been trying to make it simpler, but you know, there are too many parameters. Please let me know if you have any better ideas.
I'm working my way through the examples, and when I get to the dotHeatmap example Add parameter hue and use different cmap and marker for different groups:
I get the following output:
And the following error:
Desktop:
Python versions installed: