From dd91d41c5950c4c2ec0584db634e350fed97df69 Mon Sep 17 00:00:00 2001 From: Stefan Doerr Date: Thu, 2 Feb 2017 17:16:45 +0100 Subject: [PATCH] added fig.show() in plotFluxPathways. This fixes #246 --- htmd/kinetics.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htmd/kinetics.py b/htmd/kinetics.py index 6fd349dc2..18d229296 100644 --- a/htmd/kinetics.py +++ b/htmd/kinetics.py @@ -295,7 +295,7 @@ def plotFluxPathways(self, statetype='macro', mode='net_flux', fraction=1.0): if statetype == 'micro': tpt = msm.tpt(self.model.msm, [self.sourcemicro], [self.sinkmicro]) - plot_flux(tpt, attribute_to_plot=mode) + fig, pos = plot_flux(tpt, attribute_to_plot=mode) elif statetype == 'macro' or statetype == 'coarse': metastable_sets = [] for i in range(self.model.macronum): @@ -312,7 +312,8 @@ def plotFluxPathways(self, statetype='macro', mode='net_flux', fraction=1.0): setmap.append(idx2) continue setmap = np.array(setmap) - plot_flux(tpt, attribute_to_plot=mode, state_labels=setmap) + fig, pos = plot_flux(tpt, attribute_to_plot=mode, state_labels=setmap) + fig.show() paths, pathfluxes = tpt.pathways(fraction=fraction) cumflux = 0