@@ -497,12 +497,12 @@ def _update_locators(self):
497
497
if (self ._colorbar_mode == "single" and
498
498
self ._colorbar_location in ('left' , 'bottom' )):
499
499
if self ._colorbar_location == "left" :
500
- sz = Size . Fraction ( self ._nrows , Size .AxesX (self .axes_llc ) )
500
+ sz = self ._nrows * Size .AxesX (self .axes_llc )
501
501
h .append (Size .from_any (self ._colorbar_size , sz ))
502
502
h .append (Size .from_any (self ._colorbar_pad , sz ))
503
503
locator = self ._divider .new_locator (nx = 0 , ny = 0 , ny1 = - 1 )
504
504
elif self ._colorbar_location == "bottom" :
505
- sz = Size . Fraction ( self ._ncols , Size .AxesY (self .axes_llc ) )
505
+ sz = self ._ncols * Size .AxesY (self .axes_llc )
506
506
v .append (Size .from_any (self ._colorbar_size , sz ))
507
507
v .append (Size .from_any (self ._colorbar_pad , sz ))
508
508
locator = self ._divider .new_locator (nx = 0 , nx1 = - 1 , ny = 0 )
@@ -602,12 +602,12 @@ def _update_locators(self):
602
602
603
603
if self ._colorbar_mode == "single" :
604
604
if self ._colorbar_location == "right" :
605
- sz = Size . Fraction ( self ._nrows , Size .AxesX (self .axes_llc ) )
605
+ sz = self ._nrows * Size .AxesX (self .axes_llc )
606
606
h .append (Size .from_any (self ._colorbar_pad , sz ))
607
607
h .append (Size .from_any (self ._colorbar_size , sz ))
608
608
locator = self ._divider .new_locator (nx = - 2 , ny = 0 , ny1 = - 1 )
609
609
elif self ._colorbar_location == "top" :
610
- sz = Size . Fraction ( self ._ncols , Size .AxesY (self .axes_llc ) )
610
+ sz = self ._ncols * Size .AxesY (self .axes_llc )
611
611
v .append (Size .from_any (self ._colorbar_pad , sz ))
612
612
v .append (Size .from_any (self ._colorbar_size , sz ))
613
613
locator = self ._divider .new_locator (nx = 0 , nx1 = - 1 , ny = - 2 )
0 commit comments