From 0e256f1b1ff3b985f75fd390db2145280d4ba1ea Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 10 May 2013 15:26:26 -0400 Subject: [PATCH] A number of small fixes to reduce warnings during doc build --- examples/api/colorbar_only.py | 4 ++-- examples/pylab_examples/gradient_bar.py | 2 +- lib/matplotlib/axes.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/api/colorbar_only.py b/examples/api/colorbar_only.py index 0e1837e95f19..b270c2bf85c7 100644 --- a/examples/api/colorbar_only.py +++ b/examples/api/colorbar_only.py @@ -2,7 +2,8 @@ Make a colorbar as a separate figure. ''' -from matplotlib import pyplot, mpl +from matplotlib import pyplot +import matplotlib as mpl # Make a figure and axes with dimensions as desired. fig = pyplot.figure(figsize=(8,3)) @@ -71,4 +72,3 @@ cb3.set_label('Custom extension lengths, some other units') pyplot.show() - diff --git a/examples/pylab_examples/gradient_bar.py b/examples/pylab_examples/gradient_bar.py index fb747157079f..9133a89c59bb 100644 --- a/examples/pylab_examples/gradient_bar.py +++ b/examples/pylab_examples/gradient_bar.py @@ -24,5 +24,5 @@ def gbar(ax, x, y, width=0.5, bottom=0): x = arange(N)+0.25 y = rand(N) gbar(ax, x, y, width=0.7) -ax.set_aspect('normal') +ax.set_aspect('auto') show() diff --git a/lib/matplotlib/axes.py b/lib/matplotlib/axes.py index 4ab860a3c1af..54b4d8557202 100644 --- a/lib/matplotlib/axes.py +++ b/lib/matplotlib/axes.py @@ -4878,8 +4878,8 @@ def bar(self, left, height, width=0.8, bottom=None, **kwargs): ------- :class:`matplotlib.patches.Rectangle` instances. - Note - ---- + Notes + ----- The optional arguments `color`, `edgecolor`, `linewidth`, `xerr`, and `yerr` can be either scalars or sequences of length equal to the number of bars. This enables you to use