0% found this document useful (0 votes)
12 views1 page

DWM Expt5

This document contains information about a student including their name, division, batch, and roll number. It also includes the code for a Python script that creates a histogram from input data and customizes the x and y axis scales.

Uploaded by

Siddhi Khade
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)
12 views1 page

DWM Expt5

This document contains information about a student including their name, division, batch, and roll number. It also includes the code for a Python script that creates a histogram from input data and customizes the x and y axis scales.

Uploaded by

Siddhi Khade
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
You are on page 1/ 1

Name: Siddhi Sunil Khade

Division: TE3
Batch: B
Roll.No: 22

Experiment 5
Code:
#TE3_22_Siddhi Khade
import matplotlib.pyplot as plt
values = list(map(int,input("Enter Data:").split()))
Xrange = [ i for i in range(int(input('Start X:')),int(input('End X: '))+1)]
Yrange = [ i for i in range(int(input('Start Y:')),int(input('End Y: '))+1)]
Xleave = int(input('Enter distance between X scale: '))
Yleave = int(input('Enter distance between Y scale: '))
plt.hist(values)
plt.xticks(Xrange[::Xleave])
plt.yticks(Yrange[::Yleave])
plt.title("Experiment 5")
plt.xlabel("Value Groups")
plt.ylabel("Frequency")
#plt.savefig("hist.png")
plt.show()

Output:

You might also like