Skip to content

Commit 09cad29

Browse files
committed
FIX: rebase
1 parent eb3715b commit 09cad29

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

lib/matplotlib/colorbar.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,7 @@ class ColorbarBase:
370370

371371
n_rasterize = 50 # rasterize solids if number of colors >= n_rasterize
372372

373-
<<<<<<< HEAD
374373
@_api.make_keyword_only("3.3", "cmap")
375-
=======
376-
@_api._make_keyword_only("3.3", "cmap")
377-
>>>>>>> api vs cbook
378374
def __init__(self, ax, cmap=None,
379375
norm=None,
380376
alpha=None,
@@ -392,11 +388,7 @@ def __init__(self, ax, cmap=None,
392388
extendrect=False,
393389
label='',
394390
):
395-
<<<<<<< HEAD
396391
_api.check_isinstance([colors.Colormap, None], cmap=cmap)
397-
=======
398-
_api._check_isinstance([colors.Colormap, None], cmap=cmap)
399-
>>>>>>> api vs cbook
400392
_api.check_in_list(
401393
['vertical', 'horizontal'], orientation=orientation)
402394
_api.check_in_list(
@@ -763,7 +755,7 @@ def _get_ticker_locator_formatter(self):
763755
self.minorlocator = minorlocator
764756
_log.debug('locator: %r', locator)
765757

766-
@_api._delete_parameter("3.5", "update_ticks")
758+
@_api.delete_parameter("3.5", "update_ticks")
767759
def set_ticks(self, ticks, update_ticks=True):
768760
"""
769761
Set tick locations.
@@ -790,7 +782,7 @@ def get_ticks(self, minor=False):
790782
"""Return the x ticks as a list of locations."""
791783
return self._long_axis().get_majorticklocs()
792784

793-
@_api._delete_parameter("3.5", "update_ticks")
785+
@_api.delete_parameter("3.5", "update_ticks")
794786
def set_ticklabels(self, ticklabels, update_ticks=True):
795787
"""
796788
Set tick labels.

lib/mpl_toolkits/tests/test_axes_grid.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def test_imagegrid_cbar_mode_edge():
1515
# Remove this line when this test image is regenerated.
1616
plt.rcParams['pcolormesh.snap'] = False
1717

18-
mpl.rcParams["mpl_toolkits.legacy_colorbar"] = False
1918
X, Y = np.meshgrid(np.linspace(0, 6, 30), np.linspace(0, 6, 30))
2019
arr = np.sin(X) * np.cos(Y) + 1j*(np.sin(3*Y) * np.cos(Y/2.))
2120

@@ -40,19 +39,9 @@ def test_imagegrid_cbar_mode_edge():
4039
ax3.imshow(np.abs(arr), cmap='jet')
4140
ax4.imshow(np.arctan2(arr.imag, arr.real), cmap='hsv')
4241

43-
<<<<<<< HEAD
44-
# In each row/column, the "first" colorbars must be overwritten by the
45-
# "second" ones. To achieve this, clear out the axes first.
46-
for ax in grid:
47-
ax.cax.cla()
48-
cb = ax.cax.colorbar(
49-
ax.images[0],
50-
ticks=mpl.ticker.MaxNLocator(5)) # old default locator.
51-
=======
5242
for ax in grid:
5343
ax.cax.cla()
5444
cb = ax.cax.colorbar(ax.images[0]) # old default locator.
55-
>>>>>>> ENH: Make colorbar axes more typical
5645

5746

5847
def test_imagegrid():

0 commit comments

Comments
 (0)