barh() is a regular horizontal bar plot. I.e. multiple bars stacked vertically side-by side (i.e. in y-direction).
broken_barh() is a seqence of bars / rectangles arranged (with possible spaces) horizontally (i.e. in x-direction).
This kind of visualization is not too common but for example used to illustrate events / durations when x is time.
You can draw one through a sequence of calls through the other. As you could with fill() or Rectangle()`, but their interfaces (and implementation are optimized for the specific use case.
I don't see what to document additionally here they are just two semantically different plotting functions that happen to both draw rectangles. Somebody with the one use case would not come to the idea to use the other function.
Activity
timhoffm commented on Sep 19, 2024
They serve different semantic use cases:
This kind of visualization is not too common but for example used to illustrate events / durations when x is time.
You can draw one through a sequence of calls through the other. As you could with fill() or Rectangle()`, but their interfaces (and implementation are optimized for the specific use case.
I don't see what to document additionally here they are just two semantically different plotting functions that happen to both draw rectangles. Somebody with the one use case would not come to the idea to use the other function.