From 9490129a7454ff08f4e5e43505908f891ff2876e Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 6 Feb 2022 12:30:50 -0500 Subject: [PATCH] Add overlays to end of layout grid (aka append) by default --- piker/ui/_fsp.py | 1 - piker/ui/_overlay.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/piker/ui/_fsp.py b/piker/ui/_fsp.py index 0ae4b9ea..097b639e 100644 --- a/piker/ui/_fsp.py +++ b/piker/ui/_fsp.py @@ -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. diff --git a/piker/ui/_overlay.py b/piker/ui/_overlay.py index e683afd5..65ec2364 100644 --- a/piker/ui/_overlay.py +++ b/piker/ui/_overlay.py @@ -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)