Skip to content

Error when running ReacNetGenerator: "height and width must be > 0" #2

@Akigoo

Description

@Akigoo

Hello,

I encountered an error when running ReacNetGenerator on my MD trajectory file. The specific error is related to plotting with matplotlib, and it states that "height and width must be > 0." I would appreciate your help in resolving this issue.
Here is the command I used: reacnetgenerator -i methane.lammpstrj -a C H O --nohmm --dump.
I received the following traceback:

2024-10-07 01:03:19,829 - ReacNetGenerator Unknown - Error: cannot draw images. Details: height and width must be > 0
Traceback (most recent call last):
File "/home/study/anaconda3/envs/reacnetgenerator/lib/python3.12/site-packages/reacnetgenerator/_draw.py", line 136, in _draw
nx.draw(
File "/home/study/anaconda3/envs/reacnetgenerator/lib/python3.12/site-packages/networkx/drawing/nx_pylab.py", line 110, in draw
cf = plt.gcf()
File "/home/study/anaconda3/envs/reacnetgenerator/lib/python3.12/site-packages/matplotlib/pyplot.py", line 1093, in gcf
return figure()

Thank you for your assistance!

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