Skip to content

This application failed to start because it could not find or load the Qt platform plugin "windows" in "". #1

@ania0-art

Description

@ania0-art

执行这段代码是发生缺少qt插件报错
def network_draw(graph, saveFigPath):
plt.figure()
node_color = list()

for node in graph.nodes:
    color = [30 / 255, 144 / 255, 255 / 255]
    color[0] = graph.nodes[node]["viz"]["color"]["r"] / 255
    color[1] = graph.nodes[node]["viz"]["color"]["g"] / 255
    color[2] = graph.nodes[node]["viz"]["color"]["b"] / 255
    node_color.append(color)

pos = nx.kamada_kawai_layout(graph)  
nx.draw(graph, pos=pos, node_color=node_color, node_size = 60, edge_color="gray", with_labels=False)
plt.savefig(saveFigPath)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions