1111from matplotlib import rcParams
1212import matplotlib .artist as artist
1313import matplotlib .cbook as cbook
14- from matplotlib .cbook import _string_to_bool
1514import matplotlib .font_manager as font_manager
1615import matplotlib .lines as mlines
1716import matplotlib .patches as mpatches
@@ -859,8 +858,7 @@ def set_tick_params(self, which='major', reset=False, **kw):
859858
860859 @staticmethod
861860 def _translate_tick_kw (kw , to_init_kw = True ):
862- # The following lists may be moved to a more
863- # accessible location.
861+ # The following lists may be moved to a more accessible location.
864862 kwkeys0 = ['size' , 'width' , 'color' , 'tickdir' , 'pad' ,
865863 'labelsize' , 'labelcolor' , 'zorder' , 'gridOn' ,
866864 'tick1On' , 'tick2On' , 'label1On' , 'label2On' ]
@@ -878,22 +876,21 @@ def _translate_tick_kw(kw, to_init_kw=True):
878876 if 'rotation' in kw :
879877 kwtrans ['labelrotation' ] = kw .pop ('rotation' )
880878 if 'left' in kw :
881- kwtrans ['tick1On' ] = _string_to_bool ( kw .pop ('left' ) )
879+ kwtrans ['tick1On' ] = kw .pop ('left' )
882880 if 'bottom' in kw :
883- kwtrans ['tick1On' ] = _string_to_bool ( kw .pop ('bottom' ) )
881+ kwtrans ['tick1On' ] = kw .pop ('bottom' )
884882 if 'right' in kw :
885- kwtrans ['tick2On' ] = _string_to_bool ( kw .pop ('right' ) )
883+ kwtrans ['tick2On' ] = kw .pop ('right' )
886884 if 'top' in kw :
887- kwtrans ['tick2On' ] = _string_to_bool (kw .pop ('top' ))
888-
885+ kwtrans ['tick2On' ] = kw .pop ('top' )
889886 if 'labelleft' in kw :
890- kwtrans ['label1On' ] = _string_to_bool ( kw .pop ('labelleft' ) )
887+ kwtrans ['label1On' ] = kw .pop ('labelleft' )
891888 if 'labelbottom' in kw :
892- kwtrans ['label1On' ] = _string_to_bool ( kw .pop ('labelbottom' ) )
889+ kwtrans ['label1On' ] = kw .pop ('labelbottom' )
893890 if 'labelright' in kw :
894- kwtrans ['label2On' ] = _string_to_bool ( kw .pop ('labelright' ) )
891+ kwtrans ['label2On' ] = kw .pop ('labelright' )
895892 if 'labeltop' in kw :
896- kwtrans ['label2On' ] = _string_to_bool ( kw .pop ('labeltop' ) )
893+ kwtrans ['label2On' ] = kw .pop ('labeltop' )
897894 if 'colors' in kw :
898895 c = kw .pop ('colors' )
899896 kwtrans ['color' ] = c
0 commit comments