usnistgov / jarvis

JARVIS-Tools: an open-source software package for data-driven atomistic materials design. Publications: https://scholar.google.com/citations?user=3w6ej94AAAAJ https://www.youtube.com/watch?v=2-XHeC8gbeY
https://pages.nist.gov/jarvis/
Other
315 stars 124 forks source link

Delete plt.switch_backend("agg") in jarvis/jarvis/db/figshare.py #269

Closed nahaharo closed 1 year ago

nahaharo commented 1 year ago

I don't know where does this come from but this changes matplotlib backend without notice.

This code changes the behavier of matplotlib.

In my case, figure was not properly showed when I import jarvis.db.figshare.

I think this code is appeared when developing.

Please delete this.

knc6 commented 1 year ago

Good catch, fixed in the current version https://github.com/usnistgov/jarvis/blob/master/jarvis/db/figshare.py#L23