summaryrefslogtreecommitdiff
path: root/numpy/lib/twodim_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/twodim_base.py')
-rw-r--r--numpy/lib/twodim_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py
index b2f350bb7..6728ab7ec 100644
--- a/numpy/lib/twodim_base.py
+++ b/numpy/lib/twodim_base.py
@@ -649,7 +649,7 @@ def histogram2d(x, y, bins=10, range=None, normed=False, weights=None):
>>> import matplotlib as mpl
>>> import matplotlib.pyplot as plt
- Construct a 2D-histogram with variable bin width. First define the bin
+ Construct a 2-D histogram with variable bin width. First define the bin
edges:
>>> xedges = [0, 1, 1.5, 3, 5]
@@ -676,7 +676,7 @@ def histogram2d(x, y, bins=10, range=None, normed=False, weights=None):
>>> ax = fig.add_subplot(131)
>>> ax.set_title('imshow: equidistant')
>>> im = plt.imshow(H, interpolation='nearest', origin='low',
- extent=[xedges[0], xedges[-1], yedges[0], yedges[-1]])
+ ... extent=[xedges[0], xedges[-1], yedges[0], yedges[-1]])
pcolormesh can display exact bin edges: