Answers for "plot barplot in python"

1

barplot syntax in python

p​lt.bar(X, y)
Posted by: Guest on March-31-2021
3

bar plot matplotlib

import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
langs = ['C', 'C++', 'Java', 'Python', 'PHP']
students = [23,17,35,29,12]
ax.bar(langs,students)
plt.show()
Posted by: Guest on May-14-2020

Python Answers by Framework

Browse Popular Code Answers by Language