@@ -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
@@ -376,7 +377,7 @@ def _apply_params(self, **kwargs):
376377 self .label2 .set (rotation = self ._labelrotation [1 ])
377378
378379 label_kw = {k [5 :]: v for k , v in kwargs .items ()
379- if k in ['labelsize' , 'labelcolor' ]}
380+ if k in ['labelsize' , 'labelcolor' , 'labelfontfamily' ]}
380381 self .label1 .set (** label_kw )
381382 self .label2 .set (** label_kw )
382383
@@ -1036,7 +1037,7 @@ def _translate_tick_params(kw, reverse=False):
10361037 # The following lists may be moved to a more accessible location.
10371038 allowed_keys = [
10381039 'size' , 'width' , 'color' , 'tickdir' , 'pad' ,
1039- 'labelsize' , 'labelcolor' , 'zorder' , 'gridOn' ,
1040+ 'labelsize' , 'labelcolor' , 'labelfontfamily' , ' zorder' , 'gridOn' ,
10401041 'tick1On' , 'tick2On' , 'label1On' , 'label2On' ,
10411042 'length' , 'direction' , 'left' , 'bottom' , 'right' , 'top' ,
10421043 'labelleft' , 'labelbottom' , 'labelright' , 'labeltop' ,
0 commit comments