mirror of https://github.com/snachodog/mybuddy.git
Update sleep_pattern.py
i removed the 'autorange' attribute and reversed the axis manually
This commit is contained in:
parent
0e07fce976
commit
de1a8f230a
|
@ -155,8 +155,7 @@ def sleep_pattern(instances):
|
||||||
'TIME_FORMAT')
|
'TIME_FORMAT')
|
||||||
|
|
||||||
layout_args['yaxis']['title'] = _('Time of day')
|
layout_args['yaxis']['title'] = _('Time of day')
|
||||||
layout_args['yaxis']['range'] = [0, 24*60]
|
layout_args['yaxis']['range'] = [24*60, 0]
|
||||||
layout_args['yaxis']['autorange'] = 'reversed'
|
|
||||||
layout_args['yaxis']['tickmode'] = 'array'
|
layout_args['yaxis']['tickmode'] = 'array'
|
||||||
layout_args['yaxis']['tickvals'] = list(ticks.keys())
|
layout_args['yaxis']['tickvals'] = list(ticks.keys())
|
||||||
layout_args['yaxis']['ticktext'] = list(ticks.values())
|
layout_args['yaxis']['ticktext'] = list(ticks.values())
|
||||||
|
|
Loading…
Reference in New Issue