Q2.Program to draw pie chart of different activities(IOT'=50,'NLP'=20,'BIGDATA'=20,'NEURALNETWORK'=10)import matplotlib.pyplot as pyplot x=[1,11,15,23,25,28,35,36,38,37,48,45,47,45,46,55,58,55,56,57,55] pyplot.hist(x,6,ec="red") pyplot.xlabel('age') pyplot.ylabel('count') pyplot.title('population age count') pyplot.show()
Q3.Program to draw bar graph of enroll student in different stream(x=["arts","commerce","science"] h=[100,200,300])import matplotlib.pyplot as pyplot slice=[50,20,20,10] activities=['IOT','NLP','BIGDATA','NEURALNETWORK'] color=['r','g','b','y'] pyplot.pie(slice,labels=activities,colors=color,startangle=90) pyplot.show()
Q4.Program to draw line graph of number of student enroll in different stream(x=["arts","commerce","science"] h=[100,1500,300])import matplotlib.pyplot as pyplot x=["arts","commerce","science"] h=[100,200,300] pyplot.bar(x,h) pyplot.xlabel("course") pyplot.ylabel("student enrolled") pyplot.show()
Q5.Program to draw bar graph of student enroll in different exam(p=["neetexam","netexam","gateexam"] appear=[100,200,300])import matplotlib.pyplot as pyplot x=["arts","commerce","science"] h=[100,1500,300] pyplot.plot(x,h) pyplot.xlabel("course") pyplot.ylabel("student enrolled") pyplot.show()
import matplotlib.pyplot as pyplot p=["neetexam","netexam","gateexam"] appear=[100,200,300] pyplot.bar(p,appear) pyplot.xlabel("exam") pyplot.ylabel("student appeared") pyplot.show()
0 Comments