@@ -2705,13 +2705,13 @@ def get_next_color():
27052705 if rotatelabels :
27062706 label_alignment_v = yt > 0 and 'bottom' or 'top'
27072707 label_rotation = np .rad2deg (thetam ) + (0 if xt > 0 else 180 )
2708-
2709- t = self .text (xt , yt , label ,
2710- size = rcParams ['xtick.labelsize' ],
2711- horizontalalignment = label_alignment_h ,
2708+ props = dict (horizontalalignment = label_alignment_h ,
27122709 verticalalignment = label_alignment_v ,
27132710 rotation = label_rotation ,
2714- ** textprops )
2711+ size = rcParams ['xtick.labelsize' ])
2712+ props .update (textprops )
2713+
2714+ t = self .text (xt , yt , label , ** props )
27152715
27162716 texts .append (t )
27172717
@@ -2726,10 +2726,10 @@ def get_next_color():
27262726 raise TypeError (
27272727 'autopct must be callable or a format string' )
27282728
2729- t = self . text ( xt , yt , s ,
2730- horizontalalignment = 'center' ,
2731- verticalalignment = 'center' ,
2732- ** textprops )
2729+ props = dict ( horizontalalignment = 'center' ,
2730+ verticalalignment = 'center' )
2731+ props . update ( textprops )
2732+ t = self . text ( xt , yt , s , ** props )
27332733
27342734 autotexts .append (t )
27352735
0 commit comments