@@ -38,7 +38,7 @@ def setup(ax):
38
38
setup (ax )
39
39
ax .xaxis .set_major_locator (ticker .MultipleLocator (0.5 ))
40
40
ax .xaxis .set_minor_locator (ticker .MultipleLocator (0.1 ))
41
- ax .text (0.0 , 0.5 , "MultipleLocator (0.5)" , fontsize = 14 ,
41
+ ax .text (0.0 , 0.5 , "MultipleLocator(0.5)" , fontsize = 14 ,
42
42
transform = ax .transAxes )
43
43
44
44
# Fixed Locator
@@ -48,14 +48,16 @@ def setup(ax):
48
48
ax .xaxis .set_major_locator (ticker .FixedLocator (majors ))
49
49
minors = np .linspace (0 , 1 , 11 )[1 :- 1 ]
50
50
ax .xaxis .set_minor_locator (ticker .FixedLocator (minors ))
51
- ax .text (0.0 , 0.5 , "FixedLocator([0,1,5])" , fontsize = 14 , transform = ax .transAxes )
51
+ ax .text (0.0 , 0.5 , "FixedLocator([0, 1, 5])" , fontsize = 14 ,
52
+ transform = ax .transAxes )
52
53
53
54
# Linear Locator
54
55
ax = plt .subplot (n , 1 , 4 )
55
56
setup (ax )
56
57
ax .xaxis .set_major_locator (ticker .LinearLocator (3 ))
57
58
ax .xaxis .set_minor_locator (ticker .LinearLocator (31 ))
58
- ax .text (0.0 , 0.5 , "LinearLocator(3)" , fontsize = 14 , transform = ax .transAxes )
59
+ ax .text (0.0 , 0.5 , "LinearLocator(numticks=3)" ,
60
+ fontsize = 14 , transform = ax .transAxes )
59
61
60
62
# Index Locator
61
63
ax = plt .subplot (n , 1 , 5 )
0 commit comments