@@ -115,12 +115,12 @@ def test_imshow_antialiased(fig_test, fig_ref,
115115 A = np .random .rand (int (dpi * img_size ), int (dpi * img_size ))
116116 for fig in [fig_test , fig_ref ]:
117117 fig .set_size_inches (fig_size , fig_size )
118- axs = fig_test .subplots ()
119- axs .set_position ([0 , 0 , 1 , 1 ])
120- axs .imshow (A , interpolation = 'antialiased' )
121- axs = fig_ref .subplots ()
122- axs .set_position ([0 , 0 , 1 , 1 ])
123- axs .imshow (A , interpolation = interpolation )
118+ ax = fig_test .subplots ()
119+ ax .set_position ([0 , 0 , 1 , 1 ])
120+ ax .imshow (A , interpolation = 'antialiased' )
121+ ax = fig_ref .subplots ()
122+ ax .set_position ([0 , 0 , 1 , 1 ])
123+ ax .imshow (A , interpolation = interpolation )
124124
125125
126126@check_figures_equal (extensions = ['png' ])
@@ -131,14 +131,14 @@ def test_imshow_zoom(fig_test, fig_ref):
131131 A = np .random .rand (int (dpi * 3 ), int (dpi * 3 ))
132132 for fig in [fig_test , fig_ref ]:
133133 fig .set_size_inches (2.9 , 2.9 )
134- axs = fig_test .subplots ()
135- axs .imshow (A , interpolation = 'antialiased' )
136- axs .set_xlim ([10 , 20 ])
137- axs .set_ylim ([10 , 20 ])
138- axs = fig_ref .subplots ()
139- axs .imshow (A , interpolation = 'nearest' )
140- axs .set_xlim ([10 , 20 ])
141- axs .set_ylim ([10 , 20 ])
134+ ax = fig_test .subplots ()
135+ ax .imshow (A , interpolation = 'antialiased' )
136+ ax .set_xlim ([10 , 20 ])
137+ ax .set_ylim ([10 , 20 ])
138+ ax = fig_ref .subplots ()
139+ ax .imshow (A , interpolation = 'nearest' )
140+ ax .set_xlim ([10 , 20 ])
141+ ax .set_ylim ([10 , 20 ])
142142
143143
144144@check_figures_equal ()
0 commit comments