Home » 
        Python » 
        Matplotlib MCQs
    
        
    In a horizontal bar graph, which parameter is used to set the height of the bars?
    
    
    
	29. In a horizontal bar graph, which parameter is used to set the height of the bars?
    
      - height
- barheight
- hgt
- bheight
Answer: A) height
    Explanation:
    In a horizontal bar graph, the height parameter is used to set the height of the bars. Consider the below code statement –
name = ["Alvin", "Alex"]
age = [21, 23]
plt.barh(name, age , height = 0.1)