@@ -184,14 +184,15 @@ def test_outward_ticks():
184
184
ax .xaxis .set_tick_params (tickdir = 'out' , length = 32 , width = 3 )
185
185
ax .yaxis .set_tick_params (tickdir = 'out' , length = 32 , width = 3 )
186
186
plt .tight_layout ()
187
- assert_array_equal (
188
- np .round ([ax .get_position ().get_points () for ax in fig .axes ], 3 ),
189
- # These values were obtained after visual checking that they correspond
190
- # to a tight layouting that did take the ticks into account.
191
- [[[0.091 , 0.590 ], [0.437 , 0.903 ]],
192
- [[0.581 , 0.590 ], [0.927 , 0.903 ]],
193
- [[0.091 , 0.140 ], [0.437 , 0.454 ]],
194
- [[0.581 , 0.140 ], [0.927 , 0.454 ]]])
187
+ # These values were obtained after visual checking that they correspond
188
+ # to a tight layouting that did take the ticks into account.
189
+ ans = [[[0.091 , 0.607 ], [0.433 , 0.933 ]],
190
+ [[0.579 , 0.607 ], [0.922 , 0.933 ]],
191
+ [[0.091 , 0.140 ], [0.433 , 0.466 ]],
192
+ [[0.579 , 0.140 ], [0.922 , 0.466 ]]]
193
+ for nn , ax in enumerate (fig .axes ):
194
+ assert_array_equal (np .round (ax .get_position ().get_points (), 3 ),
195
+ ans [nn ])
195
196
196
197
197
198
def add_offsetboxes (ax , size = 10 , margin = .1 , color = 'black' ):
0 commit comments