Add overlays to end of layout grid (aka append) by default

windows_fixes_yo
Tyler Goodlet 2022-02-06 12:30:50 -05:00
parent 2f2aef28dd
commit 9490129a74
2 changed files with 1 additions and 2 deletions

View File

@ -841,7 +841,6 @@ async def open_vlm_displays(
####################
tr_pi = chart.overlay_plotitem(
'trade_rates',
index=1, # place axis on inside (nearest to chart)
# TODO: dynamically update period (and thus this axis?)
# title from user input.

View File

@ -508,7 +508,7 @@ class PlotItemOverlay:
) -> None:
index = index or 0
index = index or len(self.overlays)
root = self.root_plotitem
# layout: QGraphicsGridLayout = root.layout
self.overlays.insert(index, plotitem)