Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df34c93

Browse files
committed
Merge pull request #1896 from mdboom/doc-warnings
Remove some documentation build warnings
2 parents 9e734b6 + 0e256f1 commit df34c93

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/api/colorbar_only.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
Make a colorbar as a separate figure.
33
'''
44

5-
from matplotlib import pyplot, mpl
5+
from matplotlib import pyplot
6+
import matplotlib as mpl
67

78
# Make a figure and axes with dimensions as desired.
89
fig = pyplot.figure(figsize=(8,3))
@@ -71,4 +72,3 @@
7172
cb3.set_label('Custom extension lengths, some other units')
7273

7374
pyplot.show()
74-

examples/pylab_examples/gradient_bar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ def gbar(ax, x, y, width=0.5, bottom=0):
2424
x = arange(N)+0.25
2525
y = rand(N)
2626
gbar(ax, x, y, width=0.7)
27-
ax.set_aspect('normal')
27+
ax.set_aspect('auto')
2828
show()

lib/matplotlib/axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4878,8 +4878,8 @@ def bar(self, left, height, width=0.8, bottom=None, **kwargs):
48784878
-------
48794879
:class:`matplotlib.patches.Rectangle` instances.
48804880
4881-
Note
4882-
----
4881+
Notes
4882+
-----
48834883
The optional arguments `color`, `edgecolor`, `linewidth`,
48844884
`xerr`, and `yerr` can be either scalars or sequences of
48854885
length equal to the number of bars. This enables you to use

0 commit comments

Comments
 (0)