@@ -901,12 +901,14 @@ def plot(self, ax=None, axis=1): # add self.gs,self.fig,self.ax,self.axes
901901 colors = [self .color_dict [col ] for col in self .plot_data .columns ]
902902
903903 base_coordinates = [0 ] * self .plot_data .shape [0 ]
904+ height = self .plot_kws .pop ('bar_height' ,0.8 ) # for barh (row)
905+ width = self .plot_kws .pop ('bar_width' ,0.8 ) # for bar (column)
904906 for col , color in zip (self .plot_data .columns , colors ):
905907 if axis == 1 : #columns annotations
906908 ax .set_xticks (ticks = np .arange (0.5 , self .nrows , 1 ))
907909 ax .bar (
908910 x = np .arange (0.5 , self .nrows , 1 ),
909- height = self .plot_data [col ].values ,
911+ height = self .plot_data [col ].values ,width = width ,
910912 bottom = base_coordinates ,
911913 color = color ,
912914 ** plot_kws
@@ -917,7 +919,7 @@ def plot(self, ax=None, axis=1): # add self.gs,self.fig,self.ax,self.axes
917919 ax .set_yticks (ticks = np .arange (0.5 , self .nrows , 1 ))
918920 ax .barh (
919921 y = np .arange (0.5 , self .nrows , 1 ),
920- width = self .plot_data [col ].values ,
922+ width = self .plot_data [col ].values ,height = height ,
921923 left = base_coordinates ,
922924 color = color ,
923925 ** plot_kws
0 commit comments