From 7f997ef79ebf121aa4e36291c984cc8744ff5872 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 2 Jan 2023 15:32:02 -0500 Subject: [PATCH] Move $vlm y-axis to LHS --- piker/ui/_fsp.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/piker/ui/_fsp.py b/piker/ui/_fsp.py index 5dee7b88..98ddd502 100644 --- a/piker/ui/_fsp.py +++ b/piker/ui/_fsp.py @@ -755,7 +755,7 @@ async def open_vlm_displays( { # fsp engine conf 'func_name': 'dolla_vlm', - 'zero_on_step': True, + 'zero_on_step': False, 'params': { 'price_func': { 'default_value': 'chl3', @@ -769,7 +769,7 @@ async def open_vlm_displays( # FIXME: we should error on starting the same fsp right # since it might collide with existing shm.. or wait we # had this before?? - # dolla_vlm, + # dolla_vlm tasks_ready.append(started) # profiler(f'created shm for fsp actor: {display_name}') @@ -786,8 +786,10 @@ async def open_vlm_displays( dvlm_pi = vlm_chart.overlay_plotitem( 'dolla_vlm', index=0, # place axis on inside (nearest to chart) + axis_title=' $vlm', - axis_side='right', + axis_side='left', + axis_kwargs={ 'typical_max_str': ' 100.0 M ', 'formatter': partial( @@ -797,8 +799,10 @@ async def open_vlm_displays( }, ) - dvlm_pi.hideAxis('left') + # TODO: should this maybe be implicit based on input args to + # `.overlay_plotitem()` above? dvlm_pi.hideAxis('bottom') + # all to be overlayed curve names fields = [ 'dolla_vlm', @@ -879,7 +883,7 @@ async def open_vlm_displays( flow_rates, { # fsp engine conf 'func_name': 'flow_rates', - 'zero_on_step': False, + 'zero_on_step': True, }, # loglevel, ) @@ -913,8 +917,8 @@ async def open_vlm_displays( # TODO: dynamically update period (and thus this axis?) # title from user input. axis_title='clears', - axis_side='left', + axis_kwargs={ 'typical_max_str': ' 10.0 M ', 'formatter': partial(