Home »
Python »
Matplotlib MCQs
Which function is used to create histograms in matplotlib?
30. Which function is used to create histograms in matplotlib?
- histograms()
- histogram()
- histgraph()
- hist()
Answer: D) hist()
Explanation:
In Matplotlib, the hist() function is used to create histograms. A histogram is a graph showing frequency distributions.