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

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

Open
Akigoo opened this issue Oct 8, 2024 · 0 comments
Open

Comments

@Akigoo
Copy link

Akigoo commented Oct 8, 2024

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!

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