Skip to content

Instantly share code, notes, and snippets.

@nveenverma
Created June 14, 2019 07:12
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 nveenverma/b3be5250228a90717e31a025e778dc78 to your computer and use it in GitHub Desktop.
Save nveenverma/b3be5250228a90717e31a025e778dc78 to your computer and use it in GitHub Desktop.
f, ax = plt.subplots(3, 1, figsize=(12, 8))
ax[0].bar(df1.index, df1.no_of_votes)
ax[0].set_ylabel('No of Votes')
ax[1].bar(df1.index, df1.no_of_views)
ax[1].set_ylabel('No of Views')
ax[2].bar(df1.index, df1.no_of_answers)
ax[2].set_ylabel('No of Answers')
plt.savefig('votes_vs_views_vs_answers.png', bbox_inches='tight')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment