barahona-research-group / PyGenStability

PyGenStability: Multiscale community detection with generalized Markov Stability
https://barahona-research-group.github.io/PyGenStability/
GNU General Public License v3.0
32 stars 11 forks source link

backend issue #11

Closed zj-liu closed 4 years ago

zj-liu commented 4 years ago

In the line 208 of plotting.py: matplotlib.use("TkAgg") Not everyone uses the tkagg.

Maybe before matplotlib.use("Agg"), let b = matplotlib.get_backend() then matplotlib.use(b) , instead of matplotlib.use("TkAgg")

arnaudon commented 4 years ago

Thanks Zijing! I noticed, too! I'll correct! Have you tried the code? Feel free to comment more! I want to try to push it to release it somehow!

arnaudon commented 4 years ago

Ah in fact, I had removed it in the last commit, but just added the get_backend(), it is better!