Skip to content

import torchdrug will result in GUI of matplotlib use agg #13

Open
@DreamMemory001

Description

@DreamMemory001

import torchdrug will result in GUI of matplotlib use agg and the figure cant show. In general, the GUI of matplotlib use module://backend_interaggto show figure. Agg is non-GUI backend, so please tell why? In the graph.py, i find the function named visualize to show figure, but i cant find why change it. Hope to get your reply! Thanks!

Tip:
I find a solution to solve this problem.
under the all import, add matplotlib.use('module://backend_interagg') and import matplotlib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityNot compatible with new dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions