Skip to content

Commit

Permalink
Volumes reset fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Skinok committed Nov 30, 2021
1 parent ece6999 commit 121fe92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down
7 changes: 6 additions & 1 deletion finplotWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,19 @@ 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")):
self.ax2.reset()
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):
Expand Down

0 comments on commit 121fe92

Please sign in to comment.