You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Summary
broken_barh()
documentation does not mentionbarh()
but they seem very similar. I'm able to replace calls tobroken_barh()
with a call to this:So is there something that
broken_barh()
offers thatbarh()
doesn't?Proposed fix
It would help to document the difference if there is a meaningful one, otherwise perhaps deprecate
broken_barh()
.The text was updated successfully, but these errors were encountered: