| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -387,7 +387,6 @@ def __init__(self, ax, cmap=None, | |||
| 387 | 387 | self.outline = None | |
| 388 | 388 | self.patch = None | |
| 389 | 389 | self.dividers = None | |
| 390 | - # self.locator and self.formatter are properties... | ||
| 391 | 390 | self.locator = None | |
| 392 | 391 | self.formatter = None | |
| 393 | 392 | self._manual_tick_data_values = None | |
@@ -447,7 +446,7 @@ def draw_all(self): | |||
| 447 | 446 | ||
| 448 | 447 | def set_norm(self, norm): | |
| 449 | 448 | """ | |
| 450 | - set the norm of the mappable associateed with this colorbar. | ||
| 449 | + set the norm of the mappable associated with this colorbar. | ||
| 451 | 450 | """ | |
| 452 | 451 | self.mappable.set_norm(norm) | |
| 453 | 452 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -435,7 +435,7 @@ def test_colorbar_renorm(): | |||
| 435 | 435 | assert isinstance(cbar.locator, _ColorbarLogLocator) | |
| 436 | 436 | assert np.allclose(cbar.ax.yaxis.get_majorticklocs(), | |
| 437 | 437 | np.logspace(-8, 5, 14)) | |
| 438 | - # note that that set_norm reemoves the FixedLocator... | ||
| 438 | + # note that set_norm removes the FixedLocator... | ||
| 439 | 439 | assert np.isclose(cbar.vmin, z.min()) | |
| 440 | 440 | cbar.set_ticks([1, 2, 3]) | |
| 441 | 441 | assert isinstance(cbar.locator, FixedLocator) | |
@@ -449,7 +449,7 @@ def test_colorbar_renorm(): | |||
| 449 | 449 | ||
| 450 | 450 | ||
| 451 | 451 | def test_colorbar_format(): | |
| 452 | - # make sure that format is passed properly.... | ||
| 452 | + # make sure that format is passed properly | ||
| 453 | 453 | x, y = np.ogrid[-4:4:31j, -4:4:31j] | |
| 454 | 454 | z = 120000*np.exp(-x**2 - y**2) | |
| 455 | 455 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments