8000 TYPOS · matplotlib/matplotlib@f6c3fd9 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6c3fd9

Browse files
committed
TYPOS
1 parent cf95db3 commit f6c3fd9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
< 10000 /div>

lib/matplotlib/colorbar.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ def __init__(self, ax, cmap=None,
387387
self.outline = None
388388
self.patch = None
389389
self.dividers = None
390-
# self.locator and self.formatter are properties...
391390
self.locator = None
392391
self.formatter = None
393392
self._manual_tick_data_values = None
@@ -447,7 +446,7 @@ def draw_all(self):
447446

448447
def set_norm(self, norm):
449448
"""
450-
set the norm of the mappable associateed with this colorbar.
449+
set the norm of the mappable associated with this colorbar.
451450
"""
452451
self.mappable.set_norm(norm)
453452

lib/matplotlib/tests/test_colorbar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def test_colorbar_renorm():
435435
assert isinstance(cbar.locator, _ColorbarLogLocator)
436436
assert np.allclose(cbar.ax.yaxis.get_majorticklocs(),
437437
np.logspace(-8, 5, 14))
438-
# note that that set_norm reemoves the FixedLocator...
438+
# note that set_norm removes the FixedLocator...
439439
assert np.isclose(cbar.vmin, z.min())
440440
cbar.set_ticks([1, 2, 3])
441441
assert isinstance(cbar.locator, FixedLocator)
@@ -449,7 +449,7 @@ def test_colorbar_renorm():
449449

450450

451451
def test_colorbar_format():
452-
# make sure that format is passed properly....
452+
# make sure that format is passed properly
453453
x, y = np.ogrid[-4:4:31j, -4:4:31j]
454454
z = 120000*np.exp(-x**2 - y**2)
455455

0 commit comments

Comments
 (0)
0