Skip to content

Commit 9db5b2b

Browse files
committed
Merge remote-tracking branch 'upstream/v1.1.x' into doc-build-fixes2
Conflicts: lib/mpl_toolkits/axes_grid1/axes_divider.py
2 parents c24c02d + 50381be commit 9db5b2b

File tree

8 files changed

+31
-23
lines changed

8 files changed

+31
-23
lines changed

doc/faq/howto_faq.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,12 @@ important for complex figures that take some time to draw.
529529
you're all done issuing commands and you want to draw the figure now.
530530

531531
.. note::
532-
:func:`~matplotlib.pyplot.show` should typically only be called
533-
at most once per script and it should be the last line of your script.
534-
At that point, the GUI takes control of the interpreter. If you want
535-
to force a figure draw, use :func:`~matplotlib.pyplot.draw` instead.
532+
533+
:func:`~matplotlib.pyplot.show` should typically only be called at
534+
most once per script and it should be the last line of your
535+
script. At that point, the GUI takes control of the interpreter.
536+
If you want to force a figure draw, use
537+
:func:`~matplotlib.pyplot.draw` instead.
536538

537539
Many users are frustrated by ``show`` because they want it to be a
538540
blocking call that raises the figure, pauses the script until they
@@ -778,4 +780,3 @@ Engineering, Vol. 9, No. 3. (2007), pp. 90-95 (see `citeulike <http://www.citeul
778780
development, interactive scripting, and publication-quality image
779781
generation across user interfaces and operating systems.},
780782
Bdsk-Url-1 = {http://gateway.isiknowledge.com/gateway/Gateway.cgi?GWVersion=2&SrcAuth=Alerting&SrcApp=Alerting&DestApp=WOS&DestLinkType=FullRecord;KeyUT=000245668100019}}
781-

examples/api/logo2.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def add_matplotlib_text(ax):
4545
ha='right', va='center', alpha=1.0, transform=ax.transAxes)
4646

4747
def add_polar_bar():
48-
ax = fig.add_axes([0.025, 0.075, 0.2, 0.85], polar=True, resolution=50)
48+
ax = fig.add_axes([0.025, 0.075, 0.2, 0.85], polar=True)
4949

5050

5151
ax.axesPatch.set_alpha(axalpha)
@@ -77,5 +77,3 @@ def add_polar_bar():
7777
add_polar_bar()
7878
add_matplotlib_text(main_axes)
7979
plt.show()
80-
81-

examples/pylab_examples/mathtext_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
r"$\gamma = \frac{x=\frac{6}{8}}{y} \delta$",
4141
r'$\limsup_{x\to\infty}$',
4242
r'$\oint^\infty_0$',
43-
r"$f^'$",
43+
r"$f^\prime$",
4444
r'$\frac{x_2888}{y}$',
4545
r"$\sqrt[3]{\frac{X_2}{Y}}=5$",
4646
r"$\sqrt[5]{\prod^\frac{x}{2\pi^2}_\infty}$",

lib/matplotlib/axes.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7575,11 +7575,13 @@ def hist(x, bins=10, range=None, normed=False, weights=None,
75757575
pdf, bins, patches = ax.hist(...)
75767576
print np.sum(pdf * np.diff(bins))
75777577
7578-
.. Note:: Until numpy release 1.5, the underlying numpy
7579-
histogram function was incorrect with *normed*=*True*
7580-
if bin sizes were unequal. MPL inherited that
7581-
error. It is now corrected within MPL when using
7582-
earlier numpy versions
7578+
.. note::
7579+
7580+
Until numpy release 1.5, the underlying numpy
7581+
histogram function was incorrect with *normed*=*True*
7582+
if bin sizes were unequal. MPL inherited that
7583+
error. It is now corrected within MPL when using
7584+
earlier numpy versions
75837585
75847586
*weights*:
75857587
An array of weights, of the same shape as *x*. Each value in

lib/matplotlib/cbook.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,7 @@ def get_split_ind(seq, N):
977977
978978
len(' '.join(seq[:ind])<=N
979979
980+
.
980981
"""
981982

982983
sLen = 0

lib/matplotlib/transforms.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,7 @@ def from_values(a, b, c, d, e, f):
14911491
b d f
14921492
0 0 1
14931493
1494+
.
14941495
"""
14951496
return Affine2D(
14961497
np.array([a, c, e, b, d, f, 0.0, 0.0, 1.0], np.float_)
@@ -1504,6 +1505,7 @@ def get_matrix(self):
15041505
b d f
15051506
0 0 1
15061507
1508+
.
15071509
"""
15081510
self._invalid = 0
15091511
return self._mtx
@@ -1516,6 +1518,7 @@ def set_matrix(self, mtx):
15161518
b d f
15171519
0 0 1
15181520
1521+
.
15191522
"""
15201523
self._mtx = mtx
15211524
self.invalidate()

lib/mpl_toolkits/axes_grid1/axes_divider.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ def set_horizontal(self, h):
151151
:param horizontal: list of sizes
152152
(:mod:`~mpl_toolkits.axes_grid.axes_size`)
153153
for horizontal division
154+
155+
.
154156
"""
155157
self._horizontal = h
156158

@@ -164,6 +166,8 @@ def set_vertical(self, v):
164166
:param horizontal: list of sizes
165167
(:mod:`~mpl_toolkits.axes_grid.axes_size`)
166168
for horizontal division
169+
170+
.
167171
"""
168172
self._vertical = v
169173

@@ -932,5 +936,3 @@ def make_axes_area_auto_adjustable(ax,
932936
#from matplotlib.axes import Axes
933937
from mpl_axes import Axes
934938
LocatableAxes = locatable_axes_factory(Axes)
935-
936-

lib/mpl_toolkits/mplot3d/axes3d.py

100644100755
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(self, fig, rect=None, *args, **kwargs):
8585

8686
# func used to format z -- fall back on major formatters
8787
self.fmt_zdata = None
88-
88+
8989
if zscale is not None :
9090
self.set_zscale(zscale)
9191

@@ -609,10 +609,10 @@ def set_zticks(self, *args, **kwargs):
609609
.. versionadded:: 1.1.0
610610
"""
611611
return self.zaxis.set_ticks(*args, **kwargs)
612-
612+
613613
def get_zticks(self, minor=False):
614614
"""
615-
Return the z ticks as a list of locations
615+
Return the z ticks as a list of locations
616616
See :meth:`matplotlib.axes.Axes.get_yticks` for more details.
617617
618618
.. note::
@@ -634,7 +634,7 @@ def get_zmajorticklabels(self) :
634634
def get_zminorticklabels(self) :
635635
"""
636636
Get the ztick labels as a list of Text instances
637-
637+
638638
.. note::
639639
Minor ticks are not supported. This function was added
640640
only for completeness.
@@ -1045,6 +1045,7 @@ def grid(self, b=True, **kwargs):
10451045
Set / unset 3D grid.
10461046
10471047
.. note::
1048+
10481049
Currently, this function does not behave the same as
10491050
:meth:`matplotlib.axes.Axes.grid`, but it is intended to
10501051
eventually support that behavior.
@@ -1360,7 +1361,7 @@ def plot_surface(self, X, Y, Z, *args, **kwargs):
13601361
# then an exception is automatically thrown.
13611362
X.shape = (rows, cols)
13621363
Y.shape = (rows, cols)
1363-
1364+
13641365
rstride = kwargs.pop('rstride', 10)
13651366
cstride = kwargs.pop('cstride', 10)
13661367

@@ -1396,7 +1397,7 @@ def plot_surface(self, X, Y, Z, *args, **kwargs):
13961397
#colset contains the data for coloring: either average z or the facecolor
13971398
colset = []
13981399
for rs in xrange(0, rows-1, rstride):
1399-
for cs in xrange(0, cols-1, cstride):
1400+
for cs in xrange(0, cols-1, cstride):
14001401
ps = []
14011402
for a in (X, Y, Z) :
14021403
ztop = a[rs,cs:min(cols, cs+cstride+1)]
@@ -2167,7 +2168,7 @@ def get_test_data(delta=0.05):
21672168

21682169

21692170
########################################################
2170-
# Register Axes3D as a 'projection' object available
2171+
# Register Axes3D as a 'projection' object available
21712172
# for use just like any other axes
21722173
########################################################
21732174
import matplotlib.projections as proj

0 commit comments

Comments
 (0)