Move $vlm y-axis to LHS

epoch_index_backup
Tyler Goodlet 2023-01-02 15:32:02 -05:00
parent 7ec30efff4
commit 6d2077e8e6
1 changed files with 10 additions and 6 deletions

View File

@ -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(