Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Chris Jewell
covid19uk
Commits
e315c086
Commit
e315c086
authored
Mar 31, 2020
by
Chris Jewell
Browse files
Fixed date error in plot_case_incidence.
parent
42a41e04
Changes
1
Hide whitespace changes
Inline
Side-by-side
covid/plotting.py
View file @
e315c086
...
...
@@ -41,9 +41,10 @@ def plot_prediction(prediction_period, sims, case_reports):
plt
.
show
()
def
plot_case_incidence
(
date
s
,
sims
):
def
plot_case_incidence
(
date
_range
,
sims
):
# Number of new cases per day
dates
=
np
.
arange
(
date_range
[
0
],
date_range
[
1
])
new_cases
=
sims
[:,
:,
:,
3
].
sum
(
axis
=
2
)
new_cases
=
new_cases
[:,
1
:]
-
new_cases
[:,
:
-
1
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment