Python 3 Matplotlib Library Script to Plot a Histogram Graph From Points DataFrame

Python 3 Matplotlib Library Script to Plot a Histogram Graph From Points DataFrame

Python 3 Matplotlib Library Script to Plot a Histogram Graph From Points DataFrame

# importing matplotlib module 
from matplotlib import pyplot as plt 

# Y-axis values 
y = [10, 5, 8, 4, 2] 

# Function to plot histogram 
plt.hist(y) 

# Function to show the plot 
plt.show()
Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment