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?

  1. height
  2. barheight
  3. hgt
  4. 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)

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.