Add overlays to end of layout grid (aka append) by default
parent
2f2aef28dd
commit
9490129a74
|
@ -841,7 +841,6 @@ async def open_vlm_displays(
|
||||||
####################
|
####################
|
||||||
tr_pi = chart.overlay_plotitem(
|
tr_pi = chart.overlay_plotitem(
|
||||||
'trade_rates',
|
'trade_rates',
|
||||||
index=1, # place axis on inside (nearest to chart)
|
|
||||||
|
|
||||||
# TODO: dynamically update period (and thus this axis?)
|
# TODO: dynamically update period (and thus this axis?)
|
||||||
# title from user input.
|
# title from user input.
|
||||||
|
|
|
@ -508,7 +508,7 @@ class PlotItemOverlay:
|
||||||
|
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|
||||||
index = index or 0
|
index = index or len(self.overlays)
|
||||||
root = self.root_plotitem
|
root = self.root_plotitem
|
||||||
# layout: QGraphicsGridLayout = root.layout
|
# layout: QGraphicsGridLayout = root.layout
|
||||||
self.overlays.insert(index, plotitem)
|
self.overlays.insert(index, plotitem)
|
||||||
|
|
Loading…
Reference in New Issue