@@ -1479,7 +1479,7 @@ def test_pcolorargs():
14791479 ax .pcolormesh (x , y , Z [:- 1 , :- 1 ], shading = "gouraud" )
14801480 with pytest .raises (TypeError ):
14811481 ax .pcolormesh (X , Y , Z [:- 1 , :- 1 ], shading = "gouraud" )
1482- x [0 ] = np .NaN
1482+ x [0 ] = np .nan
14831483 with pytest .raises (ValueError ):
14841484 ax .pcolormesh (x , y , Z [:- 1 , :- 1 ])
14851485 with np .errstate (invalid = 'ignore' ):
@@ -7411,7 +7411,7 @@ def test_limits_after_scroll_zoom():
74117411def test_gettightbbox_ignore_nan ():
74127412 fig , ax = plt .subplots ()
74137413 remove_ticks_and_titles (fig )
7414- ax .text (np .NaN , 1 , 'Boo' )
7414+ ax .text (np .nan , 1 , 'Boo' )
74157415 renderer = fig .canvas .get_renderer ()
74167416 np .testing .assert_allclose (ax .get_tightbbox (renderer ).width , 496 )
74177417
@@ -8591,7 +8591,7 @@ def test_bar_leading_nan():
85918591 barheights = np .array ([0.5 , 1.5 , 2.0 ])
85928592 barstarts = np .array ([0.77 ]* 3 )
85938593
8594- barx [0 ] = np .NaN
8594+ barx [0 ] = np .nan
85958595
85968596 fig , ax = plt .subplots ()
85978597
0 commit comments