Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
493 B
2
Indexable
Never
import matplotlib.pyplot as plt

# Extracting total screen time data
total_screen_time = [236, 229, 145, 235, 482, 396, 194, 441, 254, 280, 235, 333, 592, 212, 577, 696, 455, 496, 232, 1401, 258, 1385, 359, 418, 299, 570, 286, 331]

# Plotting histogram
plt.figure(figsize=(10, 6))
plt.hist(total_screen_time, bins=10, color='skyblue', edgecolor='black')
plt.title('Distribution of Total Screen Time')
plt.xlabel('Total Screen Time (minutes)')
plt.ylabel('Frequency')
plt.grid(True)
plt.show()
Leave a Comment