Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad arguments in plot #22

Open
wgova opened this issue May 16, 2020 · 2 comments
Open

Bad arguments in plot #22

wgova opened this issue May 16, 2020 · 2 comments

Comments

@wgova
Copy link

wgova commented May 16, 2020

Love this primer. It's really insightful.
post_pred is a dict with obs key with this structure: {'obs': array([[5.71667615e+02, 1.34905178e+03, 5.25019985e+00, ...]])}

This won't render in the plot: post_pred[country].T

fig, ax = plt.subplots(figsize=(10, 8))
ax.plot(post_pred[country].T, color='0.5', alpha=.05);
ax.plot(confirmed, color='r')
ax.set(xlabel='Days since 100 cases', ylabel='Confirmed cases', title=country);

@wgova wgova changed the title Bad plot arguments Bad arguments in plot May 16, 2020
@twiecki
Copy link
Owner

twiecki commented May 16, 2020

Which NB?

@wgova
Copy link
Author

wgova commented May 17, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants