Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb3715b

Browse files
committed
api vs cbook
1 parent 8fe19eb commit eb3715b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/matplotlib/colorbar.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import numpy as np
3636

3737
import matplotlib as mpl
38-
from matplotlib import _api, cbook, collections, cm, colors, contour, ticker
38+
from matplotlib import _api, collections, cm, colors, contour, ticker
3939
from matplotlib.axes._base import _TransformedBoundsLocator
4040
from matplotlib.axes._axes import Axes
4141
import matplotlib.artist as martist
@@ -370,7 +370,11 @@ class ColorbarBase:
370370

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

373+
<<<<<<< HEAD
373374
@_api.make_keyword_only("3.3", "cmap")
375+
=======
376+
@_api._make_keyword_only("3.3", "cmap")
377+
>>>>>>> api vs cbook
374378
def __init__(self, ax, cmap=None,
375379
norm=None,
376380
alpha=None,
@@ -388,7 +392,11 @@ def __init__(self, ax, cmap=None,
388392
extendrect=False,
389393
label='',
390394
):
395+
<<<<<<< HEAD
391396
_api.check_isinstance([colors.Colormap, None], cmap=cmap)
397+
=======
398+
_api._check_isinstance([colors.Colormap, None], cmap=cmap)
399+
>>>>>>> api vs cbook
392400
_api.check_in_list(
393401
['vertical', 'horizontal'], orientation=orientation)
394402
_api.check_in_list(
@@ -792,7 +800,7 @@ def set_ticklabels(self, ticklabels, update_ticks=True):
792800
if isinstance(self.locator, ticker.FixedLocator):
793801
self.formatter = ticker.FixedFormatter(ticklabels)
794802
else:
795-
cbook._warn_external("set_ticks() must have been called.")
803+
_api._warn_external("set_ticks() must have been called.")
796804
self.stale = True
797805

798806
def minorticks_on(self):

0 commit comments

Comments
 (0)