Skip to content

Commit 36b8150

Browse files
committed
Make axes/base.py compatible with mpl: 3.8.3
1 parent ea73b3a commit 36b8150

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

proplot/axes/base.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,10 +1141,15 @@ def _add_colorbar(
11411141
# NOTE: This also adds the guides._update_ticks() monkey patch that triggers
11421142
# updates to DiscreteLocator when parent axes is drawn.
11431143
obj = cax._colorbar_fill = cax.figure.colorbar(
1144-
mappable, cax=cax, ticks=locator, format=formatter,
1145-
drawedges=grid, extendfrac=extendfrac, **kwargs
1144+
mappable,
1145+
cax=cax,
1146+
ticks=locator,
1147+
format=formatter,
1148+
drawedges=grid,
1149+
extendfrac=extendfrac,
1150+
**kwargs,
11461151
)
1147-
obj.minorlocator = minorlocator # backwards compatibility
1152+
# obj.minorlocator = minorlocator # backwards compatibility
11481153
obj.update_ticks = guides._update_ticks.__get__(obj) # backwards compatible
11491154
if minorlocator is not None:
11501155
obj.update_ticks()

0 commit comments

Comments
 (0)