Some Insights of Matplotlib
Some Insights of Matplotlib
MATPLOTLIB
Matplotlib is a low level graph plotting library in python that serves as
a visualization utilityin a variety of formats.
It is widely used for data visualization, plotting graphs, and creating
charts.
Pie chart
In [2]: areas = ['Marketing', 'Sales', 'Development' , 'HR', 'Customer_support']
budget = [2.5,10,3,6,9]
Scatter Plot
In [25]: x = [23,45,12,49,97,32,11,44]
y=[45,34,67,87,55,22,89,90]
plt.scatter(x,y)
plt.title("Age vs Salary")
plt.xlabel("Age")
plt.ylabel("Salary")
plt.show()
Line Plot
In [29]: product_id = [1,2,3,4,5,6,7,8]
online_price = [233,456,770,123,222,888,200,300]
offline_price = [400,300,100,333,444,565,600,899]
chor_bazar = [11,22,33,44,55,66,77,88]
plt.plot(product_id,online_price, color = 'Orange' , marker = '*')
Bar plot