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
{{ message }}
Repository navigation
bar / hist : gap between first bar and other bars with lw=0.0 #4602
I like to make solid bar plots without lines around each bar, eg:
plt.hist(data, fc="gray", lw=0.0, alpha=0.5)
Problem: the first bar does not exactly line up with the other bars. There is a slight misalignment visible on the right and bottom edges. Depending on the window size this shows either as a white gap or a darker overlap (visible because alpha=0.5).
The other bars are all properly lined up.
Confirmed both in the notebook inline mode and the QT backend on OSX. matplotlib.__version__ = '1.4.3'
You might be interested in #4433 which I hope to get merged for the upcoming release but you can pull the relevant function out (There is a copy-pastable function for this at #643 (comment)).
Activity
damiendr commentedon Jul 8, 2015
Examples:


tacaswell commentedon Jul 8, 2015
That is...interesting...
You might be interested in #4433 which I hope to get merged for the upcoming release but you can pull the relevant function out (There is a copy-pastable function for this at #643 (comment)).
tacaswell commentedon Jul 8, 2015
I bet this is related to #4584 .
jenshnielsen commentedon Jul 8, 2015
I agree that it is related to #4584 I can reproduce the issue with Agg based backends whereas it looks different with GTK3Cairo and WX
cimarronm commentedon Oct 18, 2015
This is the same issue as #4212. See that issue for more details on what is happening. @damiendr, you can use the following as a workaround:
efiring commentedon Sep 6, 2016
Closed by #6887