Answers for "scale bar matplotlib"

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
0

how to increase bar width in python matplogtlib

plt.bar(x, y, width=30)
Posted by: Guest on December-13-2020

Python Answers by Framework

Browse Popular Code Answers by Language