@@ -234,10 +234,11 @@ def test_cube_slice_image(self):
234234
235235 ax .coords [2 ].set_axislabel ('Velocity m/s' )
236236
237- ax .coords [1 ].set_ticks (spacing = 0.2 * u .deg , width = 1 ,
238- exclude_overlapping = True )
239- ax .coords [2 ].set_ticks (spacing = 400 * u .m / u .s , width = 1 ,
240- exclude_overlapping = True )
237+ ax .coords [1 ].set_ticks (spacing = 0.2 * u .deg , width = 1 )
238+ ax .coords [2 ].set_ticks (spacing = 400 * u .m / u .s , width = 1 )
239+
240+ ax .coords [1 ].set_ticklabel (exclude_overlapping = True )
241+ ax .coords [2 ].set_ticklabel (exclude_overlapping = True )
241242
242243 ax .coords [1 ].grid (grid_type = 'contours' , color = 'red' , linestyle = 'solid' )
243244 ax .coords [2 ].grid (grid_type = 'contours' , color = 'red' , linestyle = 'solid' )
@@ -329,8 +330,10 @@ def test_changed_axis_units(self):
329330 ax .coords [2 ].set_major_formatter ('x.xx' )
330331 ax .coords [2 ].set_format_unit (u .km / u .s )
331332 ax .coords [2 ].set_axislabel ('Velocity km/s' )
332- ax .coords [1 ].set_ticks (width = 1 , exclude_overlapping = True )
333- ax .coords [2 ].set_ticks (width = 1 , exclude_overlapping = True )
333+ ax .coords [1 ].set_ticks (width = 1 )
334+ ax .coords [2 ].set_ticks (width = 1 )
335+ ax .coords [1 ].set_ticklabel (exclude_overlapping = True )
336+ ax .coords [2 ].set_ticklabel (exclude_overlapping = True )
334337
335338 return fig
336339
@@ -345,8 +348,8 @@ def test_minor_ticks(self):
345348 slices = (50 , 'y' , 'x' ), aspect = 'equal' )
346349 ax .set_xlim (- 0.5 , 52.5 )
347350 ax .set_ylim (- 0.5 , 106.5 )
348- ax .coords [2 ].set_ticks (exclude_overlapping = True )
349- ax .coords [1 ].set_ticks (exclude_overlapping = True )
351+ ax .coords [2 ].set_ticklabel (exclude_overlapping = True )
352+ ax .coords [1 ].set_ticklabel (exclude_overlapping = True )
350353 ax .coords [2 ].display_minor_ticks (True )
351354 ax .coords [1 ].display_minor_ticks (True )
352355 ax .coords [2 ].set_minor_frequency (3 )
@@ -424,8 +427,8 @@ def test_rcparams(self):
424427 ax .grid ()
425428 ax .set_xlabel ('X label' )
426429 ax .set_ylabel ('Y label' )
427- ax .coords [0 ].set_ticks (exclude_overlapping = True )
428- ax .coords [1 ].set_ticks (exclude_overlapping = True )
430+ ax .coords [0 ].set_ticklabel (exclude_overlapping = True )
431+ ax .coords [1 ].set_ticklabel (exclude_overlapping = True )
429432 return fig
430433
431434 @pytest .mark .remote_data (source = 'astropy' )
@@ -498,8 +501,8 @@ def test_set_coord_type(self):
498501 ax .coords [1 ].set_coord_type ('scalar' )
499502 ax .coords [0 ].set_major_formatter ('x.xxx' )
500503 ax .coords [1 ].set_major_formatter ('x.xxx' )
501- ax .coords [0 ].set_ticks (exclude_overlapping = True )
502- ax .coords [1 ].set_ticks (exclude_overlapping = True )
504+ ax .coords [0 ].set_ticklabel (exclude_overlapping = True )
505+ ax .coords [1 ].set_ticklabel (exclude_overlapping = True )
503506 return fig
504507
505508 @pytest .mark .remote_data (source = 'astropy' )
0 commit comments