Skip to content

Instantly share code, notes, and snippets.

@rmorenobello
Created October 20, 2022 17:23
Show Gist options
  • Save rmorenobello/69145d669c687e0b936cb51f6ee3d74f to your computer and use it in GitHub Desktop.
Save rmorenobello/69145d669c687e0b936cb51f6ee3d74f to your computer and use it in GitHub Desktop.
DS - Data Visualization
import matplotlib.pyplot as plt # we only import pyplot
month_number = [1, 2, 3, 4, 5, 6, 7]
new_deaths = [213, 2729, 37718, 184064, 143119, 136073, 165003]
plt.plot(month_number, new_cases)
plt.ticklabel_format(axis='y', style='plain')
plt.title('New Reported Cases By Month (Globally)')
plt.xlabel('Month Number')
plt.ylabel('Number Of Cases')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment