From 372f2963c9f3b83785d970385f2e947b31db734c Mon Sep 17 00:00:00 2001 From: Andreas Mueller Date: Fri, 2 Jun 2017 23:13:15 +0200 Subject: [PATCH] Added default value of align to bar an barh Make the change of the default value of align in bar and barh more obvious by explicitly documenting it. --- lib/matplotlib/axes/_axes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index e1e1a3d1844f..97a90c647664 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -1893,7 +1893,7 @@ def bar(self, left, height, width=0.8, bottom=None, **kwargs): dictionary of kwargs to be passed to errorbar method. *ecolor* and *capsize* may be specified here rather than as independent kwargs. - align : {'center', 'edge'}, optional + align : {'center', 'edge'}, optional, default: 'center' If 'edge', aligns bars by their left edges (for vertical bars) and by their bottom edges (for horizontal bars). If 'center', interpret the `left` argument as the coordinates of the centers of the bars. @@ -2216,7 +2216,7 @@ def barh(self, bottom, width, height=0.8, left=None, **kwargs): dictionary of kwargs to be passed to errorbar method. `ecolor` and `capsize` may be specified here rather than as independent kwargs. - align : {'center', 'edge'}, optional + align : {'center', 'edge'}, optional, default: 'center' If 'edge', aligns bars by their left edges (for vertical bars) and by their bottom edges (for horizontal bars). If 'center', interpret the `bottom` argument as the