The default Seaborn barplot almost works for me albeit a few details. It is shown below:
Please look at the \'text\' annotation alongside and to the right
Concerning the first point, we need a minimal, complete, verifiable example.
In order to put space between the edge bars and the axes, one can adjust the limits of the axes. ax.set_ylim(-1,N)
, where N
is the number of bars.
The width of the bars can be set with the width
argument of plt.bar
.
plt.bar(..., width=1)
; or, for horizontal bars, use the height
argument. The seaborn bar plot does not allow to set the width or height.
Same as 2, just with ax.set_xlim(0,barmax*1.4)
, where barmax
is the maximum length of the bar.