From 977ce553af4b2080ec6d592afb467723783fcf61 Mon Sep 17 00:00:00 2001 From: James Evans Date: Mon, 17 Aug 2015 15:49:03 -0700 Subject: [PATCH] Fixed an error where 'Axes.bar' would fail if no tick labels were specified. --- lib/matplotlib/axes/_axes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 01c94be87190..c60c911196ff 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -2034,7 +2034,8 @@ def make_iterable(x): if len(bottom) != nbars: raise ValueError("incompatible sizes: argument 'bottom' " "must be length %d or scalar" % nbars) - if len(tick_label) != nbars: + # only check the number of tick labels if tick labels were specified + if label_ticks_flag and len(tick_label) != nbars: raise ValueError("incompatible sizes: argument 'tick_label' " "must be length %d or string" % nbars)