reversing y-axis of sleep plot (top to down)

This commit is contained in:
fodi666 2021-08-28 23:36:11 +02:00 committed by Christopher Charbonneau Wells
parent e137676bcd
commit 0e07fce976
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ def sleep_pattern(instances):
layout_args['yaxis']['title'] = _('Time of day')
layout_args['yaxis']['range'] = [0, 24*60]
layout_args['yaxis']['autorange'] = 'reversed'
layout_args['yaxis']['tickmode'] = 'array'
layout_args['yaxis']['tickvals'] = list(ticks.keys())
layout_args['yaxis']['ticktext'] = list(ticks.values())