0% found this document useful (0 votes)
26 views14 pages

Customizing Python Data Visualizations

very useful notes ip

Uploaded by

madhavmanoj08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views14 pages

Customizing Python Data Visualizations

very useful notes ip

Uploaded by

madhavmanoj08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Customizing the Plot

pl.hist([1,4,9,13,15],bins=[1,5,10,15],edgecolor='black',width=.5)
>>> a=[1,2,3,4,5,6,7,8,9,10]
>>> pl.hist(a,bins=3,edgecolor='y')
pl.hist(ages,bins=20,width=.5)
import pandas as pd
import matplotlib.pyplot as plt
data = {'Name':['Arnav', 'Sheela', 'Azhar', 'Bincy', 'Yash', 'Nazar'],
'Height' : [60,61,63,65,61,60],
'Weight' : [47,89,52,58,50,47]}

df=pd.DataFrame(data)
df.plot(kind='hist',bins=6,edgecolor='k')
plt.show()

You might also like