Answers for "pyplot horizontal bar chart"

0

horizontal bar plot matplotlib

import matplotlib.pyplot as plt
   
Product = ['Computer','Monitor','Laptop','Printer','Tablet']
Quantity = [320,450,300,120,280]

plt.barh(Product,Quantity)
plt.title('Store Inventory')
plt.ylabel('Product')
plt.xlabel('Quantity')
plt.show()
Posted by: Guest on January-13-2022

Code answers related to "pyplot horizontal bar chart"

Python Answers by Framework

Browse Popular Code Answers by Language