Lesson 35 of 60
pythonAdvanced Plotting: Histograms, Boxplots, and Violin Plots
20 minutes
Course progress58%
Advanced Plot Types
These plots are essential for summarizing distributions.
Histogram (frequency distribution)
data = np.random.randn(1000)
plt.hist(data, bins=30, edgecolor='black', alpha=0.7)
plt.title('Histogram of Normal Distribution')
plt.xlabel('Value')
plt.ylabel()
plt.show()