35
35
import numpy as np
36
36
37
37
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
39
39
from matplotlib .axes ._base import _TransformedBoundsLocator
40
40
from matplotlib .axes ._axes import Axes
41
41
import matplotlib .artist as martist
@@ -370,7 +370,11 @@ class ColorbarBase:
370
370
371
371
n_rasterize = 50 # rasterize solids if number of colors >= n_rasterize
372
372
373
+ < << << << HEAD
373
374
@_api .make_keyword_only ("3.3" , "cmap" )
375
+ == == == =
376
+ @_api ._make_keyword_only ("3.3" , "cmap" )
377
+ >> >> >> > api vs cbook
374
378
def __init__ (self , ax , cmap = None ,
375
379
norm = None ,
376
380
alpha = None ,
@@ -388,7 +392,11 @@ def __init__(self, ax, cmap=None,
388
392
extendrect = False ,
389
393
label = '' ,
390
394
):
395
+ << << << < HEAD
391
396
_api .check_isinstance ([colors .Colormap , None ], cmap = cmap )
397
+ == == == =
398
+ _api ._check_isinstance ([colors .Colormap , None ], cmap = cmap )
399
+ >> >> >> > api vs cbook
392
400
_api .check_in_list (
393
401
['vertical' , 'horizontal' ], orientation = orientation )
394
402
_api .check_in_list (
@@ -792,7 +800,7 @@ def set_ticklabels(self, ticklabels, update_ticks=True):
792
800
if isinstance (self .locator , ticker .FixedLocator ):
793
801
self .formatter = ticker .FixedFormatter (ticklabels )
794
802
else :
795
- cbook ._warn_external ("set_ticks() must have been called." )
803
+ _api ._warn_external ("set_ticks() must have been called." )
796
804
self .stale = True
797
805
798
806
def minorticks_on (self ):
0 commit comments