Professional Documents
Culture Documents
Plot Notes
Plot Notes
Import pandas as pd
Import matplotlib.pyplot as plt
Data=pd.read_csv("line_plot.csv")
Data
Line plot
Plt.plot(data["salesfig"],label="monthly sales",color="purple",linestyle="--",marker="o")
Plt.xlabel("months")
Plt.ylabel("salesfig")
plt.title("ficitional company")
plt.legend()
plt.grid()
Plt.show()
Bar plot
plt.figure(figsize=(25,30))
Plt.bar(data['fruits'],data['quantity'])
plt.xlabel('Fruits')
plt.ylabel('Quantity')
plt.title('Favourite Fruits Survey')
plt.xticks(rotation=90)
plt.savefig('BAR PLOT.png')
plt.show()
Box plot
Plt.figure(figsize=(25,30))
Plt.boxplot(data['bathroom'],vert=False,notch=True)
plt.xlabel("city",size=25)
plt.ylabel("price",size=25)
plt.title("my name",size=25)
plt.savefig("hogoolo")
plt.show()
Scatter plot
plt.figure(figsize=(25,31))
plt.scatter(df3["bathrooms"],df3["sqft_living"])
plt.xlabel("data1")
plt.ylabel("data2")
plt.title("love")
plt.show()