Q. Write a program to add title as "Horizontal Boxplot" and y-axis title as "Value -range" to given boxplot.
34, 18, 100, 27, 54, 52, 93, 59, 61, 87, 68, 85, 78, 82, 91
Answer :-
import matplotlib.pyplot as pl A = [34, 18, 100, 27, 54, 52, 93, 59, 61, 87, 68, 85, 78, 82, 91] pl.boxplot (A, vert = False, showmeans = True) pl.title("Horizontal Boxplot") pl.xlabel("value Range") pl.show()
Output :-
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )