diff options
author | seberg <sebastian@sipsolutions.net> | 2014-02-18 10:11:14 +0100 |
---|---|---|
committer | seberg <sebastian@sipsolutions.net> | 2014-02-18 10:11:14 +0100 |
commit | b5b47b144c78351f49b46731ccdb0de6ddf1276d (patch) | |
tree | 97bdaa9c60b98592cc72a34961cf070e3236edc3 /numpy/lib/twodim_base.py | |
parent | b69ee4443c36d1b0f86f7c96fef8727e931c87bb (diff) | |
parent | 5db04dbce769463b0d3d1c069ae0a2d1ceeed05d (diff) | |
download | numpy-b5b47b144c78351f49b46731ccdb0de6ddf1276d.tar.gz |
Merge pull request #4316 from charris/fix-gh-4092
DOC: Remove \n from strings in plot examples.
Diffstat (limited to 'numpy/lib/twodim_base.py')
-rw-r--r-- | numpy/lib/twodim_base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py index 0dc7db3f6..8c99f6804 100644 --- a/numpy/lib/twodim_base.py +++ b/numpy/lib/twodim_base.py @@ -649,14 +649,14 @@ def histogram2d(x, y, bins=10, range=None, normed=False, weights=None): >>> fig = plt.figure(figsize=(7, 3)) >>> ax = fig.add_subplot(131) - >>> ax.set_title('imshow:\nequidistant') + >>> ax.set_title('imshow: equidistant') >>> im = plt.imshow(H, interpolation='nearest', origin='low', extent=[xedges[0], xedges[-1], yedges[0], yedges[-1]]) pcolormesh can display exact bin edges: >>> ax = fig.add_subplot(132) - >>> ax.set_title('pcolormesh:\nexact bin edges') + >>> ax.set_title('pcolormesh: exact bin edges') >>> X, Y = np.meshgrid(xedges, yedges) >>> ax.pcolormesh(X, Y, H) >>> ax.set_aspect('equal') @@ -664,7 +664,7 @@ def histogram2d(x, y, bins=10, range=None, normed=False, weights=None): NonUniformImage displays exact bin edges with interpolation: >>> ax = fig.add_subplot(133) - >>> ax.set_title('NonUniformImage:\ninterpolated') + >>> ax.set_title('NonUniformImage: interpolated') >>> im = mpl.image.NonUniformImage(ax, interpolation='bilinear') >>> xcenters = xedges[:-1] + 0.5 * (xedges[1:] - xedges[:-1]) >>> ycenters = yedges[:-1] + 0.5 * (yedges[1:] - yedges[:-1]) |