We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a50f55 commit e42fc72Copy full SHA for e42fc72
1 file changed
ultraplot/axes/base.py
@@ -1349,8 +1349,14 @@ def _add_colorbar(
1349
1350
kw_label.update({"rotation": labelrotation})
1351
axis.label.update(kw_label)
1352
- # Assume ticks are set on the long axis(!)
1353
- for label in obj._long_axis().get_ticklabels():
+ # Assume ticks are set on the long axis(!))
+ if hasattr(obj, "_long_axis"):
1354
+ # mpl <=3.9
1355
+ longaxis = obj._long_axis()
1356
+ else:
1357
+ # mpl >=3.10
1358
+ longaxis = obj.long_axis
1359
+ for label in longaxis.get_ticklabels():
1360
label.update(kw_ticklabels)
1361
kw_outline = {"edgecolor": color, "linewidth": linewidth}
1362
if obj.outline is not None:
0 commit comments