@@ -471,7 +471,6 @@ def set_axis_direction(self, d):
471471 Adjust the text angle and text alignment of axis label
472472 according to the matplotlib convention.
473473
474-
475474 ===================== ========== ========= ========== ==========
476475 property left bottom right top
477476 ===================== ========== ========= ========== ==========
@@ -483,9 +482,7 @@ def set_axis_direction(self, d):
483482 Note that the text angles are actually relative to (90 + angle
484483 of the direction to the ticklabel), which gives 0 for bottom
485484 axis.
486-
487485 """
488- cbook ._check_in_list (["left" , "right" , "top" , "bottom" ], d = d )
489486 self .set_default_alignment (d )
490487 self .set_default_angle (d )
491488
@@ -555,11 +552,9 @@ def set_axis_direction(self, label_direction):
555552 of the direction to the ticklabel), which gives 0 for bottom
556553 axis.
557554 """
558- cbook ._check_in_list (["left" , "right" , "top" , "bottom" ],
559- label_direction = label_direction )
560- self ._axis_direction = label_direction
561555 self .set_default_alignment (label_direction )
562556 self .set_default_angle (label_direction )
557+ self ._axis_direction = label_direction
563558
564559 def invert_axis_direction (self ):
565560 label_direction = self ._get_opposite_direction (self ._axis_direction )
@@ -836,17 +831,15 @@ def set_axis_direction(self, axis_direction):
836831 relative to (90 + angle of the direction to the ticklabel),
837832 which gives 0 for bottom axis.
838833 """
839- cbook . _check_in_list ([ "left" , "right" , "top" , "bottom" ],
840- axis_direction = axis_direction )
834+ self . major_ticklabels . set_axis_direction ( axis_direction )
835+ self . label . set_axis_direction ( axis_direction )
841836 self ._axis_direction = axis_direction
842837 if axis_direction in ["left" , "top" ]:
843838 self .set_ticklabel_direction ("-" )
844839 self .set_axislabel_direction ("-" )
845840 else :
846841 self .set_ticklabel_direction ("+" )
847842 self .set_axislabel_direction ("+" )
848- self .major_ticklabels .set_axis_direction (axis_direction )
849- self .label .set_axis_direction (axis_direction )
850843
851844 def set_ticklabel_direction (self , tick_direction ):
852845 r"""
0 commit comments