Skip to content

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

@sunnyccui

Description

@sunnyccui

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions