mirror of https://github.com/snachodog/mybuddy.git
reversing y-axis of sleep plot (top to down)
This commit is contained in:
parent
e137676bcd
commit
0e07fce976
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue