no longer import matplotlib in network_ensemble.py