From 457cc1a1289858cdd5b171fbfe954bc7f61951d8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 26 Jul 2021 15:35:06 -0400 Subject: [PATCH] Always hide contents labels at startup --- piker/ui/_chart.py | 14 ++++++-------- piker/ui/_cursor.py | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index 6109ef7f..3d910df9 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -1281,12 +1281,6 @@ async def run_fsp( # static_yrange=(0, 100), ) - # display contents labels asap - chart.linked.cursor.contents_labels.update_labels( - len(shm.array) - 1, - # fsp_func_name - ) - # XXX: ONLY for sub-chart fsps, overlays have their # data looked up from the chart's internal array set. # TODO: we must get a data view api going STAT!! @@ -1710,10 +1704,14 @@ async def _async_main( 'account': { 'key': '**account**:', 'type': 'select', - 'default_value': ['margin'], + 'default_value': [ + 'piker.paper', + # 'ib.margin', + # 'ib.paper', + ], }, 'disti_policy': { - 'key': '**policy**:', + 'key': '**entry policy**:', 'type': 'select', 'default_value': ['uniform'], }, diff --git a/piker/ui/_cursor.py b/piker/ui/_cursor.py index 7415005a..8d5ba831 100644 --- a/piker/ui/_cursor.py +++ b/piker/ui/_cursor.py @@ -278,7 +278,7 @@ class ContentsLabels: self._labels.append( (chart, name, label, partial(update_func, label, name)) ) - # label.hide() + label.hide() return label