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

module 'matplotlib.cm' has no attribute 'spectral' #3

Open
sunnyccui opened this issue Apr 12, 2021 · 0 comments
Open

module 'matplotlib.cm' has no attribute 'spectral' #3

sunnyccui opened this issue Apr 12, 2021 · 0 comments

Comments

@sunnyccui
Copy link

sunnyccui commented Apr 12, 2021

For newer versions of matplotlib (>2.2), have to get color map differently: my fix was to change to

cmap = plt.cm.get_cmap("Spectral")
    global_color = cmap(np.linspace(0, 1, cluster_num))

This is for the file medgpc/visualization/vizkernel.py

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

1 participant