File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -307,7 +307,11 @@ def _apply_params(self, **kw):
307307 label_kw = dict ([(k [5 :], v ) for (k , v ) in label_list ])
308308 self .label1 .set (** label_kw )
309309 self .label2 .set (** label_kw )
310- for k , v in label_kw .iteritems ():
310+ for k in label_kw .iterkeys ():
311+ # for labelsize the text objects covert str ('small')
312+ # -> points. grab the integer from the `Text` object
313+ # instead of saving the string representation
314+ v = getattr (self .label1 , 'get_' + k )()
311315 setattr (self , '_' + k , v )
312316
313317
Original file line number Diff line number Diff line change @@ -1687,6 +1687,17 @@ def test_vline_limit():
16871687 assert ymax == 0.25
16881688
16891689
1690+ @cleanup
1691+ def test_text_labelsize ():
1692+ """
1693+ tests for issue #1172
1694+ """
1695+ fig = plt .figure ()
1696+ ax = fig .gca ()
1697+ ax .tick_params (labelsize = 'large' )
1698+ ax .tick_params (direction = 'out' )
1699+
1700+
16901701if __name__ == '__main__' :
16911702 import nose
16921703 nose .runmodule (argv = ['-s' , '--with-doctest' ], exit = False )
You can’t perform that action at this time.
0 commit comments