@@ -497,12 +497,12 @@ def _update_locators(self):
497497 if (self ._colorbar_mode == "single" and
498498 self ._colorbar_location in ('left' , 'bottom' )):
499499 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 )
501501 h .append (Size .from_any (self ._colorbar_size , sz ))
502502 h .append (Size .from_any (self ._colorbar_pad , sz ))
503503 locator = self ._divider .new_locator (nx = 0 , ny = 0 , ny1 = - 1 )
504504 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 )
506506 v .append (Size .from_any (self ._colorbar_size , sz ))
507507 v .append (Size .from_any (self ._colorbar_pad , sz ))
508508 locator = self ._divider .new_locator (nx = 0 , nx1 = - 1 , ny = 0 )
@@ -602,12 +602,12 @@ def _update_locators(self):
602602
603603 if self ._colorbar_mode == "single" :
604604 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 )
606606 h .append (Size .from_any (self ._colorbar_pad , sz ))
607607 h .append (Size .from_any (self ._colorbar_size , sz ))
608608 locator = self ._divider .new_locator (nx = - 2 , ny = 0 , ny1 = - 1 )
609609 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 )
611611 v .append (Size .from_any (self ._colorbar_pad , sz ))
612612 v .append (Size .from_any (self ._colorbar_size , sz ))
613613 locator = self ._divider .new_locator (nx = 0 , nx1 = - 1 , ny = - 2 )
0 commit comments