Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created May 30, 2020 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrycojones/819e4e50380c067809d3e84b76a42838 to your computer and use it in GitHub Desktop.
Save terrycojones/819e4e50380c067809d3e84b76a42838 to your computer and use it in GitHub Desktop.
df = pd.DataFrame(
barData,
index=('KG (0-6 years)', 'Young (0-19 years)', 'Older (>19 years)'),
columns=('100,000', '1,000,000'),
)
ax = df.plot.bar(figsize=(12, 6), ylim=(0, 100),
title='Age group percentages with viral load >100,000 or >1M',
rot=0, fontsize=20, table=False)
ax.set_ylabel('Percentage with at least this viral load', fontsize=15)
ax.set_xlabel('Age category', fontsize=15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment