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

hclust2 reported the matplotlib warning #8

Open
StickHu opened this issue Dec 1, 2022 · 0 comments · May be fixed by #9
Open

hclust2 reported the matplotlib warning #8

StickHu opened this issue Dec 1, 2022 · 0 comments · May be fixed by #9

Comments

@StickHu
Copy link

StickHu commented Dec 1, 2022

Hello,when I was using the hclust2 to draw, there is a problem occurred. Can you please help me solve it ?Here is the warning.

/data/workdir/huwa/software/miniconda3/envs/mpa/bin/hclust2.py:588: MatplotlibDeprecationWarning: You are modifying the state of a globally registered colormap. This has been deprecated since 3.3 and in 3.6, you will not be able to modify a registered colormap in-place. To remove this warning, you can make a copy of the colormap first. cmap = mpl.cm.get_cmap("bbcry").copy()
cm.set_under( bottom_col )
/data/workdir/huwa/software/miniconda3/envs/mpa/bin/hclust2.py:594: MatplotlibDeprecationWarning: You are modifying the state of a globally registered colormap. This has been deprecated since 3.3 and in 3.6, you will not be able to modify a registered colormap in-place. To remove this warning, you can make a copy of the colormap first. cmap = mpl.cm.get_cmap("bbcry").copy()
cm.set_over( top_col )
Traceback (most recent call last):
File "/data/workdir/huwa/software/miniconda3/envs/mpa/bin/hclust2.py", line 825, in
hclust2_main()
File "/data/workdir/huwa/software/miniconda3/envs/mpa/bin/hclust2.py", line 822, in hclust2_main
hm.draw()
File "/data/workdir/huwa/software/miniconda3/envs/mpa/bin/hclust2.py", line 684, in draw
norm = norm_f( vmin=minv if minv > 0.0 else None, vmax=maxv)
File "/data/workdir/huwa/software/miniconda3/envs/mpa/lib/python3.7/site-packages/matplotlib/_api/deprecation.py", line 459, in wrapper
return func(*args, **kwargs)
File "/data/workdir/huwa/software/miniconda3/envs/mpa/lib/python3.7/site-packages/matplotlib/init.py", line 1414, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "/data/workdir/huwa/software/miniconda3/envs/mpa/lib/python3.7/site-packages/matplotlib/axes/_axes.py", line 5492, in imshow
im._scale_norm(norm, vmin, vmax)
File "/data/workdir/huwa/software/miniconda3/envs/mpa/lib/python3.7/site-packages/matplotlib/cm.py", line 381, in _scale_norm
"Passing parameters norm and vmin/vmax simultaneously is "
ValueError: Passing parameters norm and vmin/vmax simultaneously is not supported. Please pass vmin/vmax directly to the norm when creating it.

@vitorheidrich vitorheidrich linked a pull request Jan 14, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant