1010from matplotlib import rcParams
1111import matplotlib .artist as martist
1212import matplotlib .cbook as cbook
13- from matplotlib .cbook import _string_to_bool
1413import matplotlib .font_manager as font_manager
1514import matplotlib .lines as mlines
1615import matplotlib .scale as mscale
@@ -843,8 +842,7 @@ def set_tick_params(self, which='major', reset=False, **kw):
843842
844843 @staticmethod
845844 def _translate_tick_kw (kw ):
846- # The following lists may be moved to a more
847- # accessible location.
845+ # The following lists may be moved to a more accessible location.
848846 kwkeys = ['size' , 'width' , 'color' , 'tickdir' , 'pad' ,
849847 'labelsize' , 'labelcolor' , 'zorder' , 'gridOn' ,
850848 'tick1On' , 'tick2On' , 'label1On' , 'label2On' ,
@@ -859,21 +857,21 @@ def _translate_tick_kw(kw):
859857 if 'rotation' in kw :
860858 kwtrans ['labelrotation' ] = kw .pop ('rotation' )
861859 if 'left' in kw :
862- kwtrans ['tick1On' ] = _string_to_bool ( kw .pop ('left' ) )
860+ kwtrans ['tick1On' ] = kw .pop ('left' )
863861 if 'bottom' in kw :
864- kwtrans ['tick1On' ] = _string_to_bool ( kw .pop ('bottom' ) )
862+ kwtrans ['tick1On' ] = kw .pop ('bottom' )
865863 if 'right' in kw :
866- kwtrans ['tick2On' ] = _string_to_bool ( kw .pop ('right' ) )
864+ kwtrans ['tick2On' ] = kw .pop ('right' )
867865 if 'top' in kw :
868- kwtrans ['tick2On' ] = _string_to_bool ( kw .pop ('top' ) )
866+ kwtrans ['tick2On' ] = kw .pop ('top' )
869867 if 'labelleft' in kw :
870- kwtrans ['label1On' ] = _string_to_bool ( kw .pop ('labelleft' ) )
868+ kwtrans ['label1On' ] = kw .pop ('labelleft' )
871869 if 'labelbottom' in kw :
872- kwtrans ['label1On' ] = _string_to_bool ( kw .pop ('labelbottom' ) )
870+ kwtrans ['label1On' ] = kw .pop ('labelbottom' )
873871 if 'labelright' in kw :
874- kwtrans ['label2On' ] = _string_to_bool ( kw .pop ('labelright' ) )
872+ kwtrans ['label2On' ] = kw .pop ('labelright' )
875873 if 'labeltop' in kw :
876- kwtrans ['label2On' ] = _string_to_bool ( kw .pop ('labeltop' ) )
874+ kwtrans ['label2On' ] = kw .pop ('labeltop' )
877875 if 'colors' in kw :
878876 c = kw .pop ('colors' )
879877 kwtrans ['color' ] = c
0 commit comments