diff --git a/Controller.py b/Controller.py index 98600ec..eb3e532 100644 --- a/Controller.py +++ b/Controller.py @@ -205,11 +205,10 @@ def displayStrategyResults(self): self.interface.displayPnL( pd.DataFrame(pnl_data) ) pass - + def displayUI(self): self.interface.show() pass - def cashChanged(self, cashString): diff --git a/finplotWindow.py b/finplotWindow.py index 0586d4d..16e2d4b 100644 --- a/finplotWindow.py +++ b/finplotWindow.py @@ -276,7 +276,7 @@ def resetPlots(self): # Entirely reset graph if (hasattr(self,"ax0")): self.ax0.reset() - self.ax0.overlay().reset() + #self.ax0.reset() if (hasattr(self,"ax1")): self.ax1.reset() if (hasattr(self,"ax2")): @@ -284,6 +284,11 @@ def resetPlots(self): if (hasattr(self,"axPnL")): self.axPnL.reset() + # Reset overylays too + axs = fplt.overlay_axs + for ax_overlay in axs: + ax_overlay.reset() + pass def refreshChart(self):