Skip to content

Commit 121fe92

Browse files
committed
Volumes reset fixed
1 parent ece6999 commit 121fe92

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Controller.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,10 @@ def displayStrategyResults(self):
205205
self.interface.displayPnL( pd.DataFrame(pnl_data) )
206206

207207
pass
208-
208+
209209
def displayUI(self):
210210
self.interface.show()
211211
pass
212-
213212

214213
def cashChanged(self, cashString):
215214

finplotWindow.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,19 @@ def resetPlots(self):
276276
# Entirely reset graph
277277
if (hasattr(self,"ax0")):
278278
self.ax0.reset()
279-
self.ax0.overlay().reset()
279+
#self.ax0.reset()
280280
if (hasattr(self,"ax1")):
281281
self.ax1.reset()
282282
if (hasattr(self,"ax2")):
283283
self.ax2.reset()
284284
if (hasattr(self,"axPnL")):
285285
self.axPnL.reset()
286286

287+
# Reset overylays too
288+
axs = fplt.overlay_axs
289+
for ax_overlay in axs:
290+
ax_overlay.reset()
291+
287292
pass
288293

289294
def refreshChart(self):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy