File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,11 @@ def _apply_params(self, **kw):
307
307
label_kw = dict ([(k [5 :], v ) for (k , v ) in label_list ])
308
308
self .label1 .set (** label_kw )
309
309
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 )()
311
315
setattr (self , '_' + k , v )
312
316
313
317
Original file line number Diff line number Diff line change @@ -1687,6 +1687,17 @@ def test_vline_limit():
1687
1687
assert ymax == 0.25
1688
1688
1689
1689
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
+
1690
1701
if __name__ == '__main__' :
1691
1702
import nose
1692
1703
nose .runmodule (argv = ['-s' , '--with-doctest' ], exit = False )
You can’t perform that action at this time.
0 commit comments