Page 238 - AI Ver 1.0 Class 10
P. 238
sst = [98,10,87,29,72,16,23,72,75,30]
box_plot_data = [eng,maths,science,sst]
plt.boxplot(box_plot_data)
plt.title(‘Box Plot’)
plt.xticks([1,2,3,4], ["Eng", "Maths", "Science", "SSt"], rotation = 0)
plt.xlabel(‘Subjects’)
plt.ylabel(‘Marks’)
plt.show()
Output will be:
Box Plot
100
80
Marks 60
40
20
Eng Maths Science SSt
Subjects
Task
plt.xlabel (“Date”, fontsize = 14)
plt.ylabel (“Subject “, fontsize = 14)
plt.title(‘Test Marks Subject wise’)
Can you explain the use of xlabel(), ylabel(),title() in the above code?
Personality Prediction
Personality in Latin is ‘Persona’ meaning to speak through a mask worn by actors in the ancient times at the time
of enactment in Greece and Rome. It is defined as the acquired and inherent characteristic of an individual that
controls the way of thinking, behaving and interacting with the people around them.
236 Touchpad Artificial Intelligence-X

