CBSE Class 12 Informatics Practices Question 112 of 147

Plotting with Pyplot — Question 12

Back to all questions
12
Question

Question 12

What are various types of histograms that can be created through hist() function ?

Answer

The hist() function in Matplotlib's Pyplot module allows creating various types of histograms. These include the default bar histogram (histtype='bar'), step histogram (histtype='step'), stepfilled histogram (histtype='stepfilled'), barstacked histogram (histtype='barstacked').