@@ -949,27 +949,16 @@ def test_annotation_antialiased():
949
949
950
950
@check_figures_equal ()
951
951
def test_text_antialiased_off_default_vs_manual (fig_test , fig_ref ):
952
- # note that the field antialiased is for Text object
953
- # therefore in the test we will make axis antialiasing identical
954
- # which is determined by rcParams['text.antialiased'] when axis is created
955
- # also note that there is no way to change this for axis after creating it
956
-
957
- mpl .rcParams ['text.antialiased' ] = False
958
- # axis: antialiased == rcParams['text.antialiased'] == False
959
- # text: antialiased == False
960
- fig_test .subplots ().text (0.5 , 0.5 , '6 inches x 2 inches' ,
952
+ fig_test .text (0.5 , 0.5 , '6 inches x 2 inches' ,
961
953
antialiased = False )
962
954
963
955
mpl .rcParams ['text.antialiased' ] = False
964
- # axis: antialiased == rcParams['text.antialiased'] == False
965
- # text: antialiased == rcParams['text.antialiased'] == False
966
- fig_ref .subplots ().text (0.5 , 0.5 , '6 inches x 2 inches' )
956
+ fig_ref .text (0.5 , 0.5 , '6 inches x 2 inches' )
967
957
968
958
969
959
@check_figures_equal ()
970
960
def test_text_antialiased_on_default_vs_manual (fig_test , fig_ref ):
971
- mpl .rcParams ['text.antialiased' ] = True
972
- fig_test .subplots ().text (0.5 , 0.5 , '6 inches x 2 inches' , antialiased = True )
961
+ fig_test .text (0.5 , 0.5 , '6 inches x 2 inches' , antialiased = True )
973
962
974
963
mpl .rcParams ['text.antialiased' ] = True
975
- fig_ref .subplots (). text (0.5 , 0.5 , '6 inches x 2 inches' )
964
+ fig_ref .text (0.5 , 0.5 , '6 inches x 2 inches' )
0 commit comments