Skip to content

Instantly share code, notes, and snippets.

@shellkore
Created June 1, 2019 17:26
Show Gist options
  • Save shellkore/cb865df957916c41a8658b5278e1e6f3 to your computer and use it in GitHub Desktop.
Save shellkore/cb865df957916c41a8658b5278e1e6f3 to your computer and use it in GitHub Desktop.
to close a plt
def plot_bar_x():
# this is for plotting purpose
plt.bar(countPerHour,range(24))
plt.title('Time vs ridership')
plt.xlabel('Time(Hour)')
plt.ylabel('Ridership')
plt.ion()
plt.show()
plt.pause(4)
plt.close('all')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment