@@ -64,6 +64,7 @@ def __init__(
6464 pad = None ,
6565 labelsize = None ,
6666 labelcolor = None ,
67+ labelfontfamily = None ,
6768 zorder = None ,
6869 gridOn = None , # defaults to axes.grid depending on axes.grid.which
6970 tick1On = True ,
@@ -174,11 +175,11 @@ def __init__(
174175 self .label1 = mtext .Text (
175176 np .nan , np .nan ,
176177 fontsize = labelsize , color = labelcolor , visible = label1On ,
177- rotation = self ._labelrotation [1 ])
178+ fontfamily = labelfontfamily , rotation = self ._labelrotation [1 ])
178179 self .label2 = mtext .Text (
179180 np .nan , np .nan ,
180181 fontsize = labelsize , color = labelcolor , visible = label2On ,
181- rotation = self ._labelrotation [1 ])
182+ fontfamily = labelfontfamily , rotation = self ._labelrotation [1 ])
182183
183184 self ._apply_tickdir (tickdir )
184185
@@ -378,7 +379,7 @@ def _apply_params(self, **kwargs):
378379 self .label2 .set (rotation = self ._labelrotation [1 ])
379380
380381 label_kw = {k [5 :]: v for k , v in kwargs .items ()
381- if k in ['labelsize' , 'labelcolor' ]}
382+ if k in ['labelsize' , 'labelcolor' , 'labelfontfamily' ]}
382383 self .label1 .set (** label_kw )
383384 self .label2 .set (** label_kw )
384385
@@ -1038,7 +1039,7 @@ def _translate_tick_params(kw, reverse=False):
10381039 # The following lists may be moved to a more accessible location.
10391040 allowed_keys = [
10401041 'size' , 'width' , 'color' , 'tickdir' , 'pad' ,
1041- 'labelsize' , 'labelcolor' , 'zorder' , 'gridOn' ,
1042+ 'labelsize' , 'labelcolor' , 'labelfontfamily' , ' zorder' , 'gridOn' ,
10421043 'tick1On' , 'tick2On' , 'label1On' , 'label2On' ,
10431044 'length' , 'direction' , 'left' , 'bottom' , 'right' , 'top' ,
10441045 'labelleft' , 'labelbottom' , 'labelright' , 'labeltop' ,
0 commit comments