Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4387f6da45 |
@@ -16,6 +16,18 @@ from utils import (
|
|||||||
mention,
|
mention,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
CB_color_cycle = [
|
||||||
|
"#e41a1c",
|
||||||
|
"#984ea3",
|
||||||
|
"#377eb8",
|
||||||
|
"#4daf4a",
|
||||||
|
"#dede00",
|
||||||
|
"#ff7f00",
|
||||||
|
"#a65628",
|
||||||
|
"#f781bf",
|
||||||
|
"#999999",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class Frequency:
|
class Frequency:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -59,7 +71,12 @@ class Frequency:
|
|||||||
self.hours[i][0] * 7 / n_hours
|
self.hours[i][0] * 7 / n_hours
|
||||||
]
|
]
|
||||||
ax.plot(
|
ax.plot(
|
||||||
times, hours, label=calendar.day_name[i], linestyle="--", linewidth=0.8
|
times,
|
||||||
|
hours,
|
||||||
|
label=calendar.day_name[i],
|
||||||
|
linestyle="--",
|
||||||
|
linewidth=0.8,
|
||||||
|
c=CB_color_cycle[i],
|
||||||
)
|
)
|
||||||
|
|
||||||
hours = [day[hour] / n_hours for hour in range(24)] + [day[0] / n_hours]
|
hours = [day[hour] / n_hours for hour in range(24)] + [day[0] / n_hours]
|
||||||
|
|||||||
Reference in New Issue
Block a user